From e364a0d113e77923d1f94e4ecac2c909fd7a9962 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 20 Jan 2019 12:00:54 +0100 Subject: [PATCH] Add script to generate mac vst bundles --- .gitignore | 2 ++ data/macos/generate-vst-bundles.sh | 25 +++++++++++++++++++ data/macos/plugin.vst/Contents/Info.plist | 24 ++++++++++++++++++ data/macos/plugin.vst/Contents/MacOS/deleteme | 1 + data/macos/plugin.vst/Contents/PkgInfo | 1 + .../plugin.vst/Contents/Resources/empty.lproj | 0 6 files changed, 53 insertions(+) create mode 100755 data/macos/generate-vst-bundles.sh create mode 100644 data/macos/plugin.vst/Contents/Info.plist create mode 100644 data/macos/plugin.vst/Contents/MacOS/deleteme create mode 100644 data/macos/plugin.vst/Contents/PkgInfo create mode 100644 data/macos/plugin.vst/Contents/Resources/empty.lproj diff --git a/.gitignore b/.gitignore index d65d00642..9081528db 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,8 @@ *.exe *.msi *.so +*.vst +*.vst3 # Binary dir bin/jack/ diff --git a/data/macos/generate-vst-bundles.sh b/data/macos/generate-vst-bundles.sh new file mode 100755 index 000000000..1590f35ad --- /dev/null +++ b/data/macos/generate-vst-bundles.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e + +if [ -d bin ]; then + cd bin +else + echo "Please run this script from the root folder" + exit +fi + +rm -rf *.vst/ + +PLUGINS=$(ls | grep "Carla" | grep "dylib") + +for i in ${PLUGINS}; do + FILE=$(echo $i | awk 'sub(".dylib","")') + cp -r ../data/macos/plugin.vst ${FILE}.vst + cp $i ${FILE}.vst/Contents/MacOS/${FILE} + rm -f ${FILE}.vst/Contents/MacOS/deleteme + sed -i -e "s/X-PROJECTNAME-X/${FILE}/" ${FILE}.vst/Contents/Info.plist + rm -f ${FILE}.vst/Contents/Info.plist-e +done + +cd .. diff --git a/data/macos/plugin.vst/Contents/Info.plist b/data/macos/plugin.vst/Contents/Info.plist new file mode 100644 index 000000000..df723b55e --- /dev/null +++ b/data/macos/plugin.vst/Contents/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + X-PROJECTNAME-X + CFBundleIconFile + + CFBundleIdentifier + net.sf.distrho.X-PROJECTNAME-X + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleSignature + ???? + CFBundleVersion + 1.0 + CSResourcesFileMapped + + + diff --git a/data/macos/plugin.vst/Contents/MacOS/deleteme b/data/macos/plugin.vst/Contents/MacOS/deleteme new file mode 100644 index 000000000..8d1c8b69c --- /dev/null +++ b/data/macos/plugin.vst/Contents/MacOS/deleteme @@ -0,0 +1 @@ + diff --git a/data/macos/plugin.vst/Contents/PkgInfo b/data/macos/plugin.vst/Contents/PkgInfo new file mode 100644 index 000000000..43c9cb0f0 --- /dev/null +++ b/data/macos/plugin.vst/Contents/PkgInfo @@ -0,0 +1 @@ +BNDL???? diff --git a/data/macos/plugin.vst/Contents/Resources/empty.lproj b/data/macos/plugin.vst/Contents/Resources/empty.lproj new file mode 100644 index 000000000..e69de29bb