unnieversal/macos.sh

19 lines
476 B
Bash
Executable File

#!/bin/bash
set -e
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