build Win32 installer with gitlab-ci
call "make ziprelease" if needed
This commit is contained in:
18
install/Makefile
Normal file
18
install/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user