view DPF-Prymula-audioplugins/dpf/utils/generate-vst-bundles.sh @ 8:923377f8ebcb

immposiblerush-0.230919-0_ALLDISTRIBUTIONS
author prymula <prymula76@outlook.com>
date Sat, 03 Feb 2024 18:23:04 +0100
parents 84e66ea83026
children
line wrap: on
line source

#!/bin/bash

echo "WARNING: generate-vst-bundles.sh script is no longer used"
exit 0

set -e

if [ -d bin ]; then
  cd bin
else
  echo "Please run this script from the root folder"
  exit
fi

DPF_DIR=$(dirname $0)/..
PLUGINS=$(ls | grep vst.dylib)

rm -rf *.vst/

for i in $PLUGINS; do
  BUNDLE=$(echo ${i} | awk 'sub("-vst.dylib","")')
  cp -r ${DPF_DIR}/utils/plugin.vst/ ${BUNDLE}.vst
  mv ${i} ${BUNDLE}.vst/Contents/MacOS/${BUNDLE}
  rm -f ${BUNDLE}.vst/Contents/MacOS/deleteme
  sed -i -e "s/@INFO_PLIST_PROJECT_NAME@/${BUNDLE}/" ${BUNDLE}.vst/Contents/Info.plist
  rm -f ${BUNDLE}.vst/Contents/Info.plist-e
done

cd ..