From 45e355ced0b36d154d2406c2508db751a271c614 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 5 Jan 2015 03:05:01 +0100 Subject: [PATCH] add --mixbus package option --- tools/x-win/package.sh | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/tools/x-win/package.sh b/tools/x-win/package.sh index 69acb188b8..092b639a3e 100755 --- a/tools/x-win/package.sh +++ b/tools/x-win/package.sh @@ -12,12 +12,26 @@ test -f gtk2_ardour/wscript || exit 1 : ${TMPDIR=/var/tmp} : ${SRCDIR=/var/tmp/winsrc} # source-code tgz cache -# TODO: add variant switches here or grep from build/config.log +# TODO: grep from build/config.log instead +while [ $# -gt 0 ] ; do + echo "arg = $1" + case $1 in + --mixbus) + MIXBUS=1 + shift ;; + esac +done + # see also wscript, video_tool_paths.cc, bundle_env_mingw.cc PROGRAM_NAME=Ardour PRODUCT_NAME=ardour PROGRAM_VERSION=3 +if test -n "$MIXBUS"; then + PROGRAM_NAME=Mixbus + PRODUCT_NAME=mixbus +fi + # derived variables PRODUCT_ID=${PRODUCT_NAME}${PROGRAM_VERSION} PRODUCT_EXE=${PRODUCT_NAME}.exe @@ -217,8 +231,20 @@ InstallDirRegKey HKLM "Software\\${PROGRAM_NAME}\\${PRODUCT_ID}\\$WARCH" "Instal EOF -# TODO: add project speficic finish/welcome page -cat >> $NSISFILE << EOF +if test -n "$MIXBUS"; then + +# TODO: proper welcome/finish text. + cat >> $NSISFILE << EOF +!define MUI_FINISHPAGE_TITLE "Welcome to Mixbus" +!define MUI_FINISHPAGE_TEXT "Thank you for choosing Harrison Mixbus." +!define MUI_FINISHPAGE_LINK "Harrison Consoles Website" +!define MUI_FINISHPAGE_LINK_LOCATION "http://harrisonconsoles.com" +!define MUI_FINISHPAGE_NOREBOOTSUPPORT +EOF + +else + + cat >> $NSISFILE << EOF !define MUI_FINISHPAGE_TITLE "Welcome to Ardour" !define MUI_FINISHPAGE_TEXT "This windows versions or Ardour is provided as-is.\$\\r\$\\nThe ardour community currently has no expertise in supporting windows users, and there are no developers focusing on windows specific issues either.\$\\r\$\\nIf you like Ardour, please consider helping out." !define MUI_FINISHPAGE_LINK "Ardour Manual" @@ -228,6 +254,8 @@ cat >> $NSISFILE << EOF !define MUI_FINISHPAGE_NOREBOOTSUPPORT EOF +fi + cat >> $NSISFILE << EOF !define MUI_ABORTWARNING !insertmacro MUI_PAGE_LICENSE "share\\COPYING"