From bbe68542e847824ca86b3c03a82189a066361c77 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 4 Oct 2022 11:01:54 -0600 Subject: [PATCH] fetch and include MIDI bundled content during packaging of Ardour --- tools/linux_packaging/build | 12 ++++++++++++ tools/osx_packaging/osx_build | 13 +++++++++++++ tools/x-win/package.sh | 12 ++++++++++++ 3 files changed, 37 insertions(+) diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build index 504fa53a4a..e4fcd350c1 100755 --- a/tools/linux_packaging/build +++ b/tools/linux_packaging/build @@ -741,6 +741,18 @@ if test -n "$MIXBUS"; then rm -f "${MediaClips}/"*.* unzip -q -d "${MediaClips}" "${CACHEDIR}/MixbusBundledMedia.zip" fi +else + echo "Fetching Ardour bundled content" + + curl -s -S --fail -# \ + -z "${CACHEDIR}/ArdourBundledMedia.zip" \ + -o "${CACHEDIR}/ArdourBundledMedia.zip" \ + "http://ardour.org/loops/ArdourBundledMedia.zip" + if test -f "${CACHEDIR}/MixbusBundledMedia.zip"; then + echo "Adding Ardour Bundled Content" + rm -f "${MediaClips}/"*.* + unzip -q -d "${MediaClips}" "${CACHEDIR}/ArdourBundledMedia.zip" + fi fi echo "Setting Bundled Media dir/file permissions" diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index 9cce546e4c..036ca133dd 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -818,6 +818,19 @@ if test -n "$MIXBUS"; then bsdtar -C "${PRODUCT_PKG_DIR}/${MediaClips}" -xf \ "${CACHEDIR}/MixbusBundledMedia.zip" fi +else + echo "Fetching Ardour bundled content" + curl -s -S --fail -# \ + -z "${CACHEDIR}/ArdourBundledMedia.zip" \ + -o "${CACHEDIR}/ArdourBundledMedia.zip" \ + "http://ardour.org/loops/ArdourBundledMedia.zip" + + if test -f "${CACHEDIR}/ArdourBundledMedia.zip"; then + echo "Adding Ardour Bundled Content" + rm -f "${PRODUCT_PKG_DIR}/${MediaClips}/"*.* + bsdtar -C "${PRODUCT_PKG_DIR}/${MediaClips}" -xf \ + "${CACHEDIR}/ArdourBundledMedia.zip" + fi fi echo "Setting Bundled Media dir/file permissions" diff --git a/tools/x-win/package.sh b/tools/x-win/package.sh index 7fa226489d..cb22c796d1 100755 --- a/tools/x-win/package.sh +++ b/tools/x-win/package.sh @@ -362,6 +362,18 @@ if test -n "$MIXBUS"; then rm -f $DESTDIR/share/${LOWERCASE_DIRNAME}/media/*.* unzip -q -d "$DESTDIR/share/${LOWERCASE_DIRNAME}/media/" "${SRCCACHE}/MixbusBundledMedia.zip" fi +else + echo "Fetching Ardour bundled media" + curl -s -S --fail -# \ + -z "${SRCCACHE}/ArdourBundledMedia.zip" \ + -o "${SRCCACHE}/ArdourBundledMedia.zip" \ + "http://ardour.org/loops/ArdourBundledMedia.zip" + + if test -f "${SRCCACHE}/ArdourBundledMedia.zip"; then + echo "Adding Ardour Bundled Content" + rm -f $DESTDIR/share/${LOWERCASE_DIRNAME}/media/*.* + unzip -q -d "$DESTDIR/share/${LOWERCASE_DIRNAME}/media/" "${SRCCACHE}/ArdourBundledMedia.zip" + fi fi ################################################################################