summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-10-22 23:58:57 +0200
committerRobin Gareus <robin@gareus.org>2014-10-22 23:58:57 +0200
commitf5f7f87ab6073470a82f7e4ca1531b9d6e9a5de8 (patch)
tree35bcfc995306325f0ba63ba5eebcaf54a692ef12 /tools
parentf7211ff8f773a5420883f3af9345c6852b0cb772 (diff)
windows installer: add option to use zlib (a lot faster)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/x-win/package.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/x-win/package.sh b/tools/x-win/package.sh
index 4cc2e724a8..55771abf14 100755
--- a/tools/x-win/package.sh
+++ b/tools/x-win/package.sh
@@ -151,10 +151,18 @@ else
PGF=PROGRAMFILES
fi
-cat > $NSISFILE << EOF
+if test -n "$QUICKZIP" ; then
+ cat > $NSISFILE << EOF
+SetCompressor zlib
+EOF
+else
+ cat > $NSISFILE << EOF
SetCompressor /SOLID lzma
SetCompressorDictSize 32
+EOF
+fi
+cat >> $NSISFILE << EOF
!include MUI2.nsh
Name "Ardour3"
OutFile "${OUTFILE}"
@@ -237,7 +245,12 @@ EOF
rm -f ${OUTFILE}
echo " === OutFile: $OUTFILE"
+
+if test -n "$QUICKZIP" ; then
+echo " === Building Windows Installer (fast zip)"
+else
echo " === Building Windows Installer (lzma compression takes ages)"
-makensis -V2 $NSISFILE
+fi
+time makensis -V2 $NSISFILE
rm -rf $DESTDIR
ls -lh "$OUTFILE"