mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-12 13:12:07 +00:00
Allow overriding platform in NSIS installer
MSYS2 and some mingw builds use mingw64 instead of mingw32. If you run `make installer` from the top-level, PLATFORM should be set correctly when building the installer.
This commit is contained in:
parent
7a73646157
commit
1c1e1f61f1
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,9 @@ endif
|
|||
ifndef RELEASE
|
||||
RELEASE=0
|
||||
endif
|
||||
ifndef PLATFORM
|
||||
PLATFORM=mingw32
|
||||
endif
|
||||
ifndef ARCH
|
||||
ARCH=x86
|
||||
endif
|
||||
|
@ -60,7 +63,7 @@ endif
|
|||
all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe
|
||||
|
||||
ioquake3.$(ARCH).nsi: ioquake3.nsi.in
|
||||
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/g;s/SDL2.dll/$(SDLDLL)/' < $< > $@
|
||||
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/mingw32/$(PLATFORM)/g;s/x86/$(ARCH)/g;s/SDL2.dll/$(SDLDLL)/g' < $< > $@
|
||||
|
||||
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi
|
||||
makensis $(DEFINES) ioquake3.$(ARCH).nsi
|
||||
|
|
Loading…
Reference in a new issue