unnieversal/macos.sh

19 lines
476 B
Bash
Raw Normal View History

2021-07-24 16:40:59 +00:00
#!/bin/bash
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