Do not bundle default system_config (prefer built-in defaults)
[ardour.git] / tools / x-win / package.sh
index 45144616e4c363233afe0c312a7d751246852770..7830f06a6889f69b31f82187c985be1d78da565c 100755 (executable)
@@ -19,6 +19,7 @@ test -f gtk2_ardour/wscript || exit 1
 
 : ${HARRISONCHANNELSTRIP=harrison_channelstrip}
 : ${HARRISONLV2=harrison_lv2s-n}
+: ${HARRISONDSPURL=http://www.harrisonconsoles.com/plugins/releases/public}
 
 # see also wscript, video_tool_paths.cc, bundle_env_mingw.cc
 # registry keys based on this are used there
@@ -43,6 +44,7 @@ while [ $# -gt 0 ] ; do
                        PROGRAM_NAME=Mixbus
                        PROGRAM_KEY=Mixbus
                        PRODUCT_NAME=mixbus
+                       MANUAL_NAME="mixbus${major_version}-live-manual"
                        shift ;;
                --mixbus32c)
                        MIXBUS=1
@@ -52,6 +54,7 @@ while [ $# -gt 0 ] ; do
                        PROGRAM_KEY=Mixbus32C
                        PROGRAM_NAME=Mixbus32C-${PROGRAM_VERSION}
                        PROGRAM_VERSION=""
+                       MANUAL_NAME="mixbus32c-${major_version}-live-manual"
                        shift ;;
                --chanstrip) HARRISONCHANNELSTRIP=$2 ; shift; shift ;;
        esac
@@ -133,12 +136,12 @@ cp build/libs/midi++2/midipp-*.dll $DESTDIR/bin/
 cp build/libs/evoral/evoral-*.dll $DESTDIR/bin/
 cp build/libs/ardour/ardour-*.dll $DESTDIR/bin/
 cp build/libs/timecode/timecode.dll $DESTDIR/bin/
-cp build/libs/qm-dsp/qmdsp-*.dll $DESTDIR/bin/
 cp build/libs/canvas/canvas-*.dll $DESTDIR/bin/
 cp build/libs/pbd/pbd-*.dll $DESTDIR/bin/
 cp build/libs/ptformat/ptformat-*.dll $DESTDIR/bin/
 cp build/libs/audiographer/audiographer-*.dll $DESTDIR/bin/
 cp build/libs/fst/ardour-vst-scanner.exe $DESTDIR/bin/ || true
+cp build/session_utils/*-*.exe $DESTDIR/bin/ || true
 cp `ls -t build/gtk2_ardour/ardour-*.exe | head -n1` $DESTDIR/bin/${PRODUCT_EXE}
 
 mkdir -p $DESTDIR/lib/gtk-2.0/engines
@@ -189,6 +192,9 @@ cp COPYING $DESTDIR/share/
 cp gtk2_ardour/icons/${PRODUCT_ICON} $DESTDIR/share/
 cp gtk2_ardour/icons/ardour_bug.ico $DESTDIR/share/
 
+#prefer built-in defaults
+rm -f $DESTDIR/share/${LOWERCASE_DIRNAME}/system_config
+
 # replace default cursor with square version (sans hotspot file)
 cp gtk2_ardour/icons/cursor_square/* $DESTDIR/share/${LOWERCASE_DIRNAME}/icons/
 
@@ -247,12 +253,26 @@ fi
 
 ################################################################################
 ### Mixbus plugins, etc
+if true ; then
+       mkdir -p $ALIBDIR/LV2
+
+       echo "Adding General MIDI Synth LV2"
+
+       for proj in x42-gmsynth; do
+               X42_VERSION=$(curl -s -S http://x42-plugins.com/x42/win/${proj}.latest.txt)
+               rsync -a -q --partial \
+                       rsync://x42-plugins.com/x42/win/${proj}-lv2-${WARCH}-${X42_VERSION}.zip \
+                       "${SRCCACHE}/${proj}-lv2-${WARCH}-${X42_VERSION}.zip"
+               unzip -q -d "$ALIBDIR/LV2/" "${SRCCACHE}/${proj}-lv2-${WARCH}-${X42_VERSION}.zip"
+       done
+fi
+
 if test x$WITH_X42_LV2 != x ; then
        mkdir -p $ALIBDIR/LV2
 
        echo "Adding x42 Plugins"
 
-       for proj in x42-meters x42-midifilter x42-midimap x42-stereoroute x42-eq setBfree; do
+       for proj in x42-meters x42-midifilter x42-midimap x42-stereoroute x42-eq setBfree x42-avldrums; do
                X42_VERSION=$(curl -s -S http://x42-plugins.com/x42/win/${proj}.latest.txt)
                rsync -a -q --partial \
                        rsync://x42-plugins.com/x42/win/${proj}-lv2-${WARCH}-${X42_VERSION}.zip \
@@ -269,7 +289,7 @@ if test x$WITH_HARRISON_LV2 != x ; then
        curl -s -S --fail -# \
                -z "${SRCCACHE}/${HARRISONLV2}.${WARCH}.zip" \
                -o "${SRCCACHE}/${HARRISONLV2}.${WARCH}.zip" \
-               "http://www.harrisonconsoles.com/mixbus/mb3/beta/harrison-dsp/${HARRISONLV2}.${WARCH}.zip"
+               "${HARRISONDSPURL}/${HARRISONLV2}.${WARCH}.zip"
        unzip -q -d "$ALIBDIR/LV2/" "${SRCCACHE}/${HARRISONLV2}.${WARCH}.zip"
 fi
 
@@ -280,7 +300,7 @@ if test -n "$MIXBUS"; then
        curl -s -S --fail -# \
                -z "${SRCCACHE}/${HARRISONCHANNELSTRIP}.${WARCH}.dll" \
                -o "${SRCCACHE}/${HARRISONCHANNELSTRIP}.${WARCH}.dll" \
-               "http://www.harrisonconsoles.com/mixbus/mb3/beta/harrison-dsp/${HARRISONCHANNELSTRIP}.${WARCH}.dll"
+               "${HARRISONDSPURL}/${HARRISONCHANNELSTRIP}.${WARCH}.dll"
 
        cp "${SRCCACHE}/${HARRISONCHANNELSTRIP}.${WARCH}.dll" \
                "$ALIBDIR/ladspa/strip/${HARRISONCHANNELSTRIP}.dll"
@@ -290,12 +310,24 @@ if test -n "$MIXBUS"; then
        curl -s -S --fail -# \
                -z "${SRCCACHE}/harrison_vamp.${WARCH}.dll" \
                -o "${SRCCACHE}/harrison_vamp.${WARCH}.dll" \
-               "http://www.harrisonconsoles.com/mixbus/mb3/beta/harrison-dsp/harrison_vamp.${WARCH}.dll"
+               "${HARRISONDSPURL}/harrison_vamp.${WARCH}.dll"
 
        cp "${SRCCACHE}/harrison_vamp.${WARCH}.dll" \
                "$ALIBDIR/vamp/harrison_vamp.dll"
 fi
 
+################################################################################
+
+if test x$DEMO_SESSION_URL != x ; then
+       mkdir -p $Shared/sessions
+       DEMO_SESSIONS=$(curl -s -S --fail $DEMO_SESSION_URL/index.txt)
+       for demo in $DEMO_SESSIONS; do
+               curl -s -S --fail -# -o $Shared/sessions/$demo $DEMO_SESSION_URL/$demo
+       done
+fi
+
+################################################################################
+
 ( cd $DESTDIR ; find . ) > ${TMPDIR}/file_list.txt
 
 ################################################################################
@@ -344,7 +376,7 @@ if test -n "$MIXBUS"; then
 !define MUI_FINISHPAGE_TITLE "Welcome to Harrison Mixbus"
 !define MUI_FINISHPAGE_TEXT "Thanks for your purchase of Mixbus!\$\\r\$\\nYou will find the Mixbus application in the Start Menu (or the All Apps panel for Windows 8) \$\\r\$\\nClick the link below to view the Mixbus manual, and learn ways to get involved with the Mixbus community."
 !define MUI_FINISHPAGE_LINK "Mixbus Manual"
-!define MUI_FINISHPAGE_LINK_LOCATION "http://www.harrisonconsoles.com/mixbus/mixbus3-live-manual"
+!define MUI_FINISHPAGE_LINK_LOCATION "http://www.harrisonconsoles.com/mixbus/${MANUAL_NAME}/"
 !define MUI_FINISHPAGE_NOREBOOTSUPPORT
 EOF
 
@@ -353,8 +385,8 @@ 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 on Windows"
-!define MUI_FINISHPAGE_LINK_LOCATION "http://ardour.org/windows.html"
+!define MUI_FINISHPAGE_LINK "Ardour Manual"
+!define MUI_FINISHPAGE_LINK_LOCATION "http://manual.ardour.org/"
 #this would run as admin - see http://forums.winamp.com/showthread.php?t=353366
 #!define MUI_FINISHPAGE_RUN "\$INSTDIR\\bin\\${PRODUCT_EXE}"
 !define MUI_FINISHPAGE_NOREBOOTSUPPORT