From f5f7f87ab6073470a82f7e4ca1531b9d6e9a5de8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 22 Oct 2014 23:58:57 +0200 Subject: [PATCH] windows installer: add option to use zlib (a lot faster) --- tools/x-win/package.sh | 17 +++++++++++++++-- 1 file 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"