summaryrefslogtreecommitdiffstats
path: root/packaging/windows
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-16 15:53:53 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-16 15:53:53 -0800
commitbb44e108a3a53b22eb2b64f82e944852bea63c41 (patch)
tree3d6c39c8f2f351914d7db506781063625f5477e8 /packaging/windows
parent155228004e6b295efba9a9c35b6dc080e76b8389 (diff)
downloadsubsurface-bb44e108a3a53b22eb2b64f82e944852bea63c41.tar.gz
Force recreation of the Windows .nsi file when cross building
This way we make sure that the version number for the installer is correct. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/windows')
-rwxr-xr-xpackaging/windows/mingw-make.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh
index 7416d1d59..6201d41a4 100755
--- a/packaging/windows/mingw-make.sh
+++ b/packaging/windows/mingw-make.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# just a small shell script that is used to invoke make with the right
# parameters to cross compile a binary for Windows
@@ -6,6 +6,10 @@
# the paths work for the default mingw32 install on OpenSUSE - adjust as
# necessary
+# force recreation of the nsi file in order to get the correct version
+# number
+rm packaging/windows/subsurface.nsi
+
export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH
make CC=i686-w64-mingw32-gcc \
PKGCONFIG=i686-w64-mingw32-pkg-config \