summaryrefslogtreecommitdiff
path: root/tools/x-win
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-01-05 03:05:01 +0100
committerRobin Gareus <robin@gareus.org>2015-01-05 03:05:01 +0100
commit45e355ced0b36d154d2406c2508db751a271c614 (patch)
treede0dea25519f0000747c2af3f015d9565f0e5a6d /tools/x-win
parent12902f7136e2c43584e9f6e923e294359699e5bd (diff)
add --mixbus package option
Diffstat (limited to 'tools/x-win')
-rwxr-xr-xtools/x-win/package.sh34
1 files 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"