summaryrefslogtreecommitdiffstats
path: root/subsurface-install.pri
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-29 11:24:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-29 13:01:19 -0700
commit0e0d6135afb626480f85135cf1c16c1701105088 (patch)
tree47f4db1e37f244cff91abed48d83b1b27ca97bb4 /subsurface-install.pri
parentd5f19c43c925468f363f0e509816df724f930db9 (diff)
downloadsubsurface-0e0d6135afb626480f85135cf1c16c1701105088.tar.gz
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>
Diffstat (limited to 'subsurface-install.pri')
-rw-r--r--subsurface-install.pri6
1 files changed, 5 insertions, 1 deletions
diff --git a/subsurface-install.pri b/subsurface-install.pri
index c06f5bd30..be11b49bf 100644
--- a/subsurface-install.pri
+++ b/subsurface-install.pri
@@ -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