unnieversal/macos.sh

18 lines
510 B
Bash
Raw Normal View History

2021-07-24 16:40:59 +00:00
#!/bin/bash
# Make sure we have the arguments we need
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