From 69e7baf68216efc8bb6a06211570dd5185e6d8f3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 12 Nov 2020 06:41:28 -0800 Subject: build-system: allow building only a 64bit Windows installer This is simply a time optimization that is sometimes useful Signed-off-by: Dirk Hohndel --- packaging/windows/create-win-installer.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'packaging/windows') 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 -- cgit v1.2.3-70-g09d2