summaryrefslogtreecommitdiffstats
path: root/packaging/windows
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows')
-rwxr-xr-xpackaging/windows/mingw-make.sh1
-rw-r--r--packaging/windows/subsurface.nsi.in13
2 files changed, 14 insertions, 0 deletions
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh
index 1c94ff963..d34da5084 100755
--- a/packaging/windows/mingw-make.sh
+++ b/packaging/windows/mingw-make.sh
@@ -32,6 +32,7 @@ if [[ $1 == "Qt5-64" ]] ; then
LIBMARBLEDEVEL=../marble \
LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \
QMAKE_LIBDIR+=../openssl \
+ CONFIG+=win64target \
$BASEDIR/../../subsurface.pro
elif [[ $1 == "Qt5" ]] ; then
diff --git a/packaging/windows/subsurface.nsi.in b/packaging/windows/subsurface.nsi.in
index f1af9e9e5..58b59a66b 100644
--- a/packaging/windows/subsurface.nsi.in
+++ b/packaging/windows/subsurface.nsi.in
@@ -84,6 +84,19 @@
# Default installer section
Section
+ !include x64.nsh
+ ${If} 64BITBUILDTOKEN
+ ${IfNot} ${RunningX64}
+ Abort "You cannot install the 64bit version of Subsurface on a 32bit version of Windows"
+ ${EndIf}
+ ${Else}
+ ${If} ${RunningX64}
+ MessageBox MB_YESNO "Do you really want to install the 32bit version of Subsurface on your 64bit version of Windows?" IDYES goforit
+ Abort "Please download the 64bit version of the Subsurface installer"
+ goforit:
+ ${EndIf}
+ ${Endif}
+
SetShellVarContext all
# Installation path