build Win32 installer with gitlab-ci

call "make ziprelease" if needed
This commit is contained in:
Thomas Bernard
2018-05-13 22:51:44 +02:00
parent d72fb40b27
commit 1147a8f49f
4 changed files with 26 additions and 2 deletions

18
install/Makefile Normal file
View File

@@ -0,0 +1,18 @@
VERSIONTAG = ../obj/win32/versiontag
VERSION := $(shell cat $(VERSIONTAG))
SOURCES = ../src-$(VERSION).tgz
INSTALLER = ../grafx2-$(VERSION).win32.exe
all: $(INSTALLER)
$(INSTALLER): WinInstaller.nsi $(SOURCES) $(VERSIONTAG)
sed 's/src-.*.tgz/src-$(VERSION).tgz/' $< | \
sed 's/VERSION .*/VERSION $(VERSION)/' > new_$<
makensis new_$<
$(SOURCES): ../grafx2-$(VERSION)-win32.zip
cd .. && unzip grafx2-$(VERSION)-win32.zip src-$(VERSION).tgz
../grafx2-$(VERSION)-win32.zip:
cd ../src && WIN32CROSS=1 make ziprelease