Skip to content

Commit 413a6fb

Browse files
Releases now work good for linux and windows (just need mac)
1 parent d61e8d3 commit 413a6fb

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

installer/installer.nsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Section ""
4848

4949
SetOutPath "$INSTDIR"
5050

51-
;Add released file
52-
File /r "C:\CEdev\*.*"
51+
;Add installed folder (DIST_PATH is set from the makefile)
52+
File /r ${DIST_PATH}\*.*
5353

5454
;Add to PATH
5555
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\bin"

makefile

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,8 @@ INSTALLLOC := $(call NATIVEPATH,$(DESTDIR)$(PREFIX))
1616
CP = copy /y
1717
EXMPL_DIR = $(call NATIVEPATH,$(INSTALLLOC)/CEdev/examples)
1818
CP_EXMPLS = (if not exist "$(EXMPL_DIR)" mkdir $(EXMPL_DIR)) && xcopy /y /s /e $(call NATIVEPATH,$(CURDIR)/examples) $(EXMPL_DIR)
19-
ZIPVBS = __zip.vbs
20-
ARCH = cd $(INSTALLLOC) && \
21-
echo Set oArg = WScript.Arguments > $(ZIPVBS) && \
22-
echo Set fso = CreateObject("Scripting.FileSystemObject") >> $(ZIPVBS) && \
23-
echo inDir = fso.GetAbsolutePathName(oArg(0)) >> $(ZIPVBS) && \
24-
echo outZip = fso.GetAbsolutePathName(oArg(1)) >> $(ZIPVBS) && \
25-
echo fso.CreateTextFile(outZip, True).Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar) >> $(ZIPVBS) && \
26-
echo Set oShell = CreateObject("Shell.Application") >> $(ZIPVBS) && \
27-
echo Set src = oShell.NameSpace(inDir).Items >> $(ZIPVBS) && \
28-
echo oShell.NameSpace(outZip).CopyHere(src) >> $(ZIPVBS) && \
29-
echo wScript.Sleep 5000 >> $(ZIPVBS) && \
30-
CScript $(ZIPVBS) $(RELEASE_NAME) $(RELEASE_NAME).zip && \
31-
$(RM) $(ZIPVBS)
19+
ARCH = makensis.exe /DDIST_PATH=$(call NATIVEPATH,$(DESTDIR)$(PREFIX)/CEdev) $(call NATIVEPATH,$(CURDIR)\installer\installer.nsi) && \
20+
(if not exist "..\release" mkdir "..\release") && move /y installer\CEdev.exe release
3221
else
3322
NATIVEPATH = $(subst \,/,$(1))
3423
WINPATH = $(shell winepath --windows $(1))
@@ -39,7 +28,9 @@ PREFIX ?= $(HOME)
3928
INSTALLLOC := $(call NATIVEPATH,$(DESTDIR)$(PREFIX))
4029
CP = cp
4130
CP_EXMPLS = cp -r $(call NATIVEPATH,$(CURDIR)/examples) $(call NATIVEPATH,$(INSTALLLOC)/CEdev)
42-
ARCH = cd $(INSTALLLOC) ; tar -czf $(RELEASE_NAME).tar.gz $(RELEASE_NAME)
31+
ARCH = cd $(INSTALLLOC) ; tar -czf $(RELEASE_NAME).tar.gz $(RELEASE_NAME) ; \
32+
cd $(CURDIR) ; mkdir -p release ; mv -f $(INSTALLLOC)/$(RELEASE_NAME).tar.gz release
33+
chain := ;
4334
endif
4435

4536
TOOLSDIR := $(call NATIVEPATH,$(CURDIR)/tools)

0 commit comments

Comments
 (0)