DISTRHO Plugin Framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
612B

  1. #!/bin/bash
  2. set -e
  3. if [ -d bin ]; then
  4. cd bin
  5. else
  6. echo "Please run this script from the root folder"
  7. exit
  8. fi
  9. PWD=`pwd`
  10. if [ ! -d /System/Library ]; then
  11. echo "This doesn't seem to be OSX, please stop!"
  12. exit 0
  13. fi
  14. rm -rf *.vst/
  15. PLUGINS=`ls | grep vst.dylib`
  16. for i in $PLUGINS; do
  17. FILE=`echo $i | awk 'sub("-vst.dylib","")'`
  18. cp -r ../dpf/utils/plugin.vst/ $FILE.vst
  19. mv $i $FILE.vst/Contents/MacOS/$FILE
  20. rm -f $FILE.vst/Contents/MacOS/deleteme
  21. sed -i -e "s/X-PROJECTNAME-X/$FILE/" $FILE.vst/Contents/Info.plist
  22. rm -f $FILE.vst/Contents/Info.plist-e
  23. SetFile -a B $FILE.vst
  24. done
  25. cd ..