13
0

windows installer: add option to use zlib (a lot faster)

This commit is contained in:
Robin Gareus 2014-10-22 23:58:57 +02:00
parent f7211ff8f7
commit f5f7f87ab6

View File

@ -151,10 +151,18 @@ else
PGF=PROGRAMFILES PGF=PROGRAMFILES
fi fi
cat > $NSISFILE << EOF if test -n "$QUICKZIP" ; then
cat > $NSISFILE << EOF
SetCompressor zlib
EOF
else
cat > $NSISFILE << EOF
SetCompressor /SOLID lzma SetCompressor /SOLID lzma
SetCompressorDictSize 32 SetCompressorDictSize 32
EOF
fi
cat >> $NSISFILE << EOF
!include MUI2.nsh !include MUI2.nsh
Name "Ardour3" Name "Ardour3"
OutFile "${OUTFILE}" OutFile "${OUTFILE}"
@ -237,7 +245,12 @@ EOF
rm -f ${OUTFILE} rm -f ${OUTFILE}
echo " === OutFile: $OUTFILE" echo " === OutFile: $OUTFILE"
if test -n "$QUICKZIP" ; then
echo " === Building Windows Installer (fast zip)"
else
echo " === Building Windows Installer (lzma compression takes ages)" echo " === Building Windows Installer (lzma compression takes ages)"
makensis -V2 $NSISFILE fi
time makensis -V2 $NSISFILE
rm -rf $DESTDIR rm -rf $DESTDIR
ls -lh "$OUTFILE" ls -lh "$OUTFILE"