mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't install Windows 64bit binaries on 32bit system
Also warn people installing 32bit binaries on a 64bit system Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a5c282f939
commit
90224c273b
3 changed files with 19 additions and 1 deletions
|
|
@ -118,7 +118,11 @@ mac {
|
|||
dlls.depends += $(DESTDIR_TARGET)
|
||||
|
||||
nsis.commands += $(CHK_DIR_EXISTS) $$WINDOWSSTAGING;
|
||||
nsis.commands += cat $$NSIINPUTFILE | sed -e \'s/VERSIONTOKEN/$$VERSION_STRING/;s/PRODVTOKEN/$${PRODVERSION_STRING}/\' > $$NSIFILE
|
||||
win64target {
|
||||
nsis.commands += cat $$NSIINPUTFILE | sed -e \'s/VERSIONTOKEN/$$VERSION_STRING/;s/PRODVTOKEN/$${PRODVERSION_STRING}/;s/64BITBUILDTOKEN/1 == 1/\' > $$NSIFILE
|
||||
} else {
|
||||
nsis.commands += cat $$NSIINPUTFILE | sed -e \'s/VERSIONTOKEN/$$VERSION_STRING/;s/PRODVTOKEN/$${PRODVERSION_STRING}/;s/64BITBUILDTOKEN/1 == 0/\' > $$NSIFILE
|
||||
}
|
||||
nsis.depends += $$NSIINPUTFILE
|
||||
nsis.target = $$NSISFILE
|
||||
installer.commands += $$MAKENSIS $$NSIFILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue