I’m trying to update a plugin that I haven’t built since 2015 or so. I updated to version 6.0.4 (from version 3.0.2 I think) and I’m able to get the code to compile, but the post build script fails. After some investigating it appears that the script expects the VST3 plugin to be a folder, while the compile stage is producing an actual VST3 file.
Here is the snippet that’s failing.
if [ $copyVST3 -gt 0 ]; then
VST3Dir=~/Library/Audio/Plug-Ins/VST3
mkdir -p "$VST3Dir"
VST3=$VST3Dir/$PRODUCT_NAME.vst3
if [ -d "$VST3" ]; then
rm -r "$VST3"
fi
echo "Copying $original to VST3 folder $VST3 ..."
cp -r "$original" "$VST3"
sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$VST3/Contents/PkgInfo"
sed -i "" -e 's/TDMw/BNDL/g' "$VST3/Contents/$INFOPLIST_FILE"
codesign -s "<certificate>" "$VST3"
fi
It appears that the method for creating the VSTs has changed at some point but I’m not sure how to get the script working again. Any help would be appreciated.
Mike