aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/windows/create-win-installer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows/create-win-installer.sh')
-rw-r--r--packaging/windows/create-win-installer.sh23
1 files changed, 12 insertions, 11 deletions
diff --git a/packaging/windows/create-win-installer.sh b/packaging/windows/create-win-installer.sh
index c9f9f87f5..80b7d6ad9 100644
--- a/packaging/windows/create-win-installer.sh
+++ b/packaging/windows/create-win-installer.sh
@@ -31,14 +31,15 @@ bash -ex ../subsurface/packaging/windows/smtk2ssrf-mxe-build.sh -a -i
mv smtk-import/smtk2ssrf-$VERSION.exe /__w
-# build the 32bit installer
-cd /__w
-rm -rf win32
-mkdir win32
-cd win32
-
-# build Subsurface and then smtk2ssrf
-export MXEBUILDTYPE=i686-w64-mingw32.shared
-bash -ex ../subsurface/packaging/windows/mxe-based-build.sh installer
-mv subsurface/subsurface-$VERSION.exe /__w/subsurface-32bit-$VERSION.exe
-
+if [ "$1" != "-64only" ] ; then
+ # build the 32bit installer
+ cd /__w
+ rm -rf win32
+ mkdir win32
+ cd win32
+
+ # build Subsurface and then smtk2ssrf
+ export MXEBUILDTYPE=i686-w64-mingw32.shared
+ bash -ex ../subsurface/packaging/windows/mxe-based-build.sh installer
+ mv subsurface/subsurface-$VERSION.exe /__w/subsurface-32bit-$VERSION.exe
+fi