2021-07-24 16:40:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-08-31 21:37:02 +00:00
|
|
|
set -e
|
|
|
|
|
2021-07-24 16:40:59 +00:00
|
|
|
if [[ -z $1 ]]; then
|
|
|
|
echo "Builds, bundles and copies to /Library/Audio/Plug-Ins/VST a package"
|
|
|
|
echo "Example:"
|
|
|
|
echo -e "\t$0 packagename"
|
|
|
|
else
|
|
|
|
cargo b --package "$1" --release
|
|
|
|
echo "Built"
|
|
|
|
package="$1"
|
|
|
|
upPackage="$(tr '[:lower:]' '[:upper:]' <<< ${package:0:1})${package:1}"
|
|
|
|
./osx_vst_bundler.sh "$upPackage" "target/release/lib$1.dylib"
|
|
|
|
echo "Bundled"
|
|
|
|
sudo cp -r "build/$upPackage.vst" /Library/Audio/Plug-Ins/VST
|
|
|
|
echo "Copied"
|
|
|
|
fi
|