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.

45 lines
1.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. if [ $copyAU -gt 0 ]; then
  9. echo "Copying to AudioUnit folder..."
  10. AU=~/Library/Audio/Plug-Ins/Components/$PRODUCT_NAME.component
  11. if [ -d "$AU" ]; then
  12. rm -r "$AU"
  13. fi
  14. cp -r "$original" "$AU"
  15. sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$AU/Contents/PkgInfo"
  16. sed -i "" -e 's/TDMw/BNDL/g' "$AU/Contents/$INFOPLIST_FILE"
  17. fi
  18. if [ $copyVST -gt 0 ]; then
  19. echo "Copying to VST folder..."
  20. VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst
  21. if [ -d "$VST" ]; then
  22. rm -r "$VST"
  23. fi
  24. cp -r "$original" "$VST"
  25. sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$VST/Contents/PkgInfo"
  26. sed -i "" -e 's/TDMw/BNDL/g' "$VST/Contents/$INFOPLIST_FILE"
  27. fi
  28. if [ $copyRTAS -gt 0 ]; then
  29. echo "Copying to RTAS folder..."
  30. RTAS=/Library/Application\ Support/Digidesign/Plug-Ins/$PRODUCT_NAME.dpm
  31. if [ -d "$RTAS" ]; then
  32. rm -r "$RTAS"
  33. fi
  34. cp -r "$original" "$RTAS"
  35. fi