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.

70 lines
2.1KB

  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 'GetEffectDescriptions' | 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. fi
  19. if [ $copyVST -gt 0 ]; then
  20. echo "Copying to VST folder..."
  21. VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst
  22. if [ -d "$VST" ]; then
  23. rm -r "$VST"
  24. fi
  25. cp -r "$original" "$VST"
  26. sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$VST/Contents/PkgInfo"
  27. sed -i "" -e 's/TDMw/BNDL/g' "$VST/Contents/$INFOPLIST_FILE"
  28. fi
  29. if [ $copyRTAS -gt 0 ]; then
  30. echo "Copying to RTAS folder..."
  31. RTAS=/Library/Application\ Support/Digidesign/Plug-Ins/$PRODUCT_NAME.dpm
  32. if [ -d "$RTAS" ]; then
  33. rm -r "$RTAS"
  34. fi
  35. cp -r "$original" "$RTAS"
  36. fi
  37. if [ $copyAAX -gt 0 ]; then
  38. echo "Copying to AAX folder..."
  39. if [ -d "/Applications/ProTools_3PDev/Plug-Ins" ]; then
  40. AAX1="/Applications/ProTools_3PDev/Plug-Ins/$PRODUCT_NAME.aaxplugin"
  41. if [ -d "$AAX1" ]; then
  42. rm -r "$AAX1"
  43. fi
  44. cp -r "$original" "$AAX1"
  45. fi
  46. if [ -d "/Library/Application Support/Avid/Audio/Plug-Ins" ]; then
  47. AAX2="/Library/Application Support/Avid/Audio/Plug-Ins/$PRODUCT_NAME.aaxplugin"
  48. if [ -d "$AAX2" ]; then
  49. rm -r "$AAX2"
  50. fi
  51. cp -r "$original" "$AAX2"
  52. fi
  53. fi