The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

78 lines
2.4KB

  1. # This script takes the build product and copies it to the AU, VST, and RTAS folders, depending on
  2. # which plugin types you've built
  3. original=$CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME
  4. # this looks inside the binary to detect which platforms are needed..
  5. copyAU=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'AudioUnit' | wc -l`
  6. copyVST=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'VSTPlugin' | wc -l`
  7. copyRTAS=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'CProcess' | wc -l`
  8. copyAAX=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'ACFStartup' | wc -l`
  9. if [ $copyAU -gt 0 ]; then
  10. echo "Copying to AudioUnit folder..."
  11. AU=~/Library/Audio/Plug-Ins/Components/$PRODUCT_NAME.component
  12. if [ -d "$AU" ]; then
  13. rm -r "$AU"
  14. fi
  15. cp -r "$original" "$AU"
  16. sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$AU/Contents/PkgInfo"
  17. sed -i "" -e 's/TDMw/BNDL/g' "$AU/Contents/$INFOPLIST_FILE"
  18. # Fix info.plist for AUs built with Xcode 3
  19. if [ -f "$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp" ]; then
  20. echo
  21. else
  22. echo "Removing AudioComponents entry from Info.plist because this is not a new-format AU"
  23. /usr/libexec/PlistBuddy -c "Delete AudioComponents" "$AU/Contents/Info.plist"
  24. fi
  25. fi
  26. if [ $copyVST -gt 0 ]; then
  27. echo "Copying to VST folder..."
  28. VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst
  29. if [ -d "$VST" ]; then
  30. rm -r "$VST"
  31. fi
  32. cp -r "$original" "$VST"
  33. sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$VST/Contents/PkgInfo"
  34. sed -i "" -e 's/TDMw/BNDL/g' "$VST/Contents/$INFOPLIST_FILE"
  35. fi
  36. if [ $copyRTAS -gt 0 ]; then
  37. echo "Copying to RTAS folder..."
  38. RTAS=/Library/Application\ Support/Digidesign/Plug-Ins/$PRODUCT_NAME.dpm
  39. if [ -d "$RTAS" ]; then
  40. rm -r "$RTAS"
  41. fi
  42. cp -r "$original" "$RTAS"
  43. fi
  44. if [ $copyAAX -gt 0 ]; then
  45. echo "Copying to AAX folder..."
  46. if [ -d "/Applications/ProTools_3PDev/Plug-Ins" ]; then
  47. AAX1="/Applications/ProTools_3PDev/Plug-Ins/$PRODUCT_NAME.aaxplugin"
  48. if [ -d "$AAX1" ]; then
  49. rm -r "$AAX1"
  50. fi
  51. cp -r "$original" "$AAX1"
  52. fi
  53. if [ -d "/Library/Application Support/Avid/Audio/Plug-Ins" ]; then
  54. AAX2="/Library/Application Support/Avid/Audio/Plug-Ins/$PRODUCT_NAME.aaxplugin"
  55. if [ -d "$AAX2" ]; then
  56. rm -r "$AAX2"
  57. fi
  58. cp -r "$original" "$AAX2"
  59. fi
  60. fi