mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Introjucer: Updated the script that installs plugins to make sure it creates missing folders before copying the files to them
This commit is contained in:
parent
fc2ce88576
commit
ff68742e1e
5 changed files with 38 additions and 20 deletions
|
|
@ -2261,7 +2261,7 @@
|
|||
CC4D3A6F1EF2934059AA9FEB,
|
||||
221F46E90C0A8651AB76A0E5,
|
||||
B46C12D99498E9FA8F1D083A, ); runOnlyForDeploymentPostprocessing = 0; };
|
||||
E277BCF6E051A6008DD74155 = {isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; name = "Post-build script"; shellPath = /bin/sh; shellScript = "\n# This script takes the build product and copies it to the AU, VST, VST3, RTAS and AAX folders, depending on \n# which plugin types you've built\n\noriginal=$CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME\n\n# this looks inside the binary to detect which platforms are needed.. \ncopyAU=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'AudioUnit' | wc -l`\ncopyVST=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'VSTPlugin' | wc -l`\ncopyVST3=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'GetPluginFactory' | wc -l`\ncopyRTAS=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'CProcess' | wc -l`\ncopyAAX=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'ACFStartup' | wc -l`\n\nif [ $copyAU -gt 0 ]; then\n echo \"Copying to AudioUnit folder...\"\n AU=~/Library/Audio/Plug-Ins/Components/$PRODUCT_NAME.component\n if [ -d \"$AU\" ]; then \n rm -r \"$AU\"\n fi\n\n cp -r \"$original\" \"$AU\"\n sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$AU/Contents/PkgInfo\"\n sed -i \"\" -e 's/TDMw/BNDL/g' \"$AU/Contents/$INFOPLIST_FILE\"\n\n # Fix info.plist for AUs built with Xcode 3\n if [ -f \"$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp\" ]; then\n echo\n else\n echo \"Removing AudioComponents entry from Info.plist because this is not a new-format AU\"\n /usr/libexec/PlistBuddy -c \"Delete AudioComponents\" \"$AU/Contents/Info.plist\"\n fi\nfi\n\nif [ $copyVST -gt 0 ]; then\n echo \"Copying to VST folder...\"\n VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst\n if [ -d \"$VST\" ]; then \n rm -r \"$VST\"\n fi\n\n cp -r \"$original\" \"$VST\"\n sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$VST/Contents/PkgInfo\"\n sed -i \"\" -e 's/TDMw/BNDL/g' \"$VST/Contents/$INFOPLIST_FILE\"\nfi\n\nif [ $copyVST3 -gt 0 ]; then\n echo \"Copying to VST3 folder...\"\n VST3=~/Library/Audio/Plug-Ins/VST3/$PRODUCT_NAME.vst3\n if [ -d \"$VST3\" ]; then \n rm -r \"$VST3\"\n fi\n\n cp -r \"$original\" \"$VST3\"\n sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$VST3/Contents/PkgInfo\"\n sed -i \"\" -e 's/TDMw/BNDL/g' \"$VST3/Contents/$INFOPLIST_FILE\"\nfi\n\nif [ $copyRTAS -gt 0 ]; then\n echo \"Copying to RTAS folder...\"\n RTAS=/Library/Application\\ Support/Digidesign/Plug-Ins/$PRODUCT_NAME.dpm\n if [ -d \"$RTAS\" ]; then\n rm -r \"$RTAS\"\n fi\n\n cp -r \"$original\" \"$RTAS\"\nfi\n\nif [ $copyAAX -gt 0 ]; then\n echo \"Copying to AAX folder...\"\n\n if [ -d \"/Applications/ProTools_3PDev/Plug-Ins\" ]; then\n AAX1=\"/Applications/ProTools_3PDev/Plug-Ins/$PRODUCT_NAME.aaxplugin\"\n\n if [ -d \"$AAX1\" ]; then\n rm -r \"$AAX1\"\n fi\n\n cp -r \"$original\" \"$AAX1\"\n fi\n\n if [ -d \"/Library/Application Support/Avid/Audio/Plug-Ins\" ]; then\n AAX2=\"/Library/Application Support/Avid/Audio/Plug-Ins/$PRODUCT_NAME.aaxplugin\"\n\n if [ -d \"$AAX2\" ]; then\n rm -r \"$AAX2\"\n fi\n\n cp -r \"$original\" \"$AAX2\"\n fi\nfi\n"; };
|
||||
E277BCF6E051A6008DD74155 = {isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; name = "Post-build script"; shellPath = /bin/sh; shellScript = "\n# This script takes the build product and copies it to the AU, VST, VST3, RTAS and AAX folders, depending on \n# which plugin types you've built\n\noriginal=$CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME\n\n# this looks inside the binary to detect which platforms are needed.. \ncopyAU=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'AudioUnit' | wc -l`\ncopyVST=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'VSTPlugin' | wc -l`\ncopyVST3=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'GetPluginFactory' | wc -l`\ncopyRTAS=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'CProcess' | wc -l`\ncopyAAX=`nm -g \"$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH\" | grep -i 'ACFStartup' | wc -l`\n\nif [ $copyAU -gt 0 ]; then\n echo \"Copying to AudioUnit folder...\"\n AUDir=~/Library/Audio/Plug-Ins/Components\n mkdir -p \"$AUDir\"\n AU=$AUDir/$PRODUCT_NAME.component\n if [ -d \"$AU\" ]; then \n rm -r \"$AU\"\n fi\n\n cp -r \"$original\" \"$AU\"\n sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$AU/Contents/PkgInfo\"\n sed -i \"\" -e 's/TDMw/BNDL/g' \"$AU/Contents/$INFOPLIST_FILE\"\n\n # Fix info.plist for AUs built with Xcode 3\n if [ -f \"$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp\" ]; then\n echo\n else\n echo \"Removing AudioComponents entry from Info.plist because this is not a new-format AU\"\n /usr/libexec/PlistBuddy -c \"Delete AudioComponents\" \"$AU/Contents/Info.plist\"\n fi\nfi\n\nif [ $copyVST -gt 0 ]; then\n echo \"Copying to VST folder...\"\n VSTDir=~/Library/Audio/Plug-Ins/VST\n mkdir -p \"$VSTDir\"\n VST=$VSTDir/$PRODUCT_NAME.vst\n if [ -d \"$VST\" ]; then \n rm -r \"$VST\"\n fi\n\n cp -r \"$original\" \"$VST\"\n sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$VST/Contents/PkgInfo\"\n sed -i \"\" -e 's/TDMw/BNDL/g' \"$VST/Contents/$INFOPLIST_FILE\"\nfi\n\nif [ $copyVST3 -gt 0 ]; then\n echo \"Copying to VST3 folder...\"\n VST3Dir=~/Library/Audio/Plug-Ins/VST3\n mkdir -p \"$VST3Dir\"\n VST3=$VST3Dir/$PRODUCT_NAME.vst3\n if [ -d \"$VST3\" ]; then \n rm -r \"$VST3\"\n fi\n\n cp -r \"$original\" \"$VST3\"\n sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$VST3/Contents/PkgInfo\"\n sed -i \"\" -e 's/TDMw/BNDL/g' \"$VST3/Contents/$INFOPLIST_FILE\"\nfi\n\nif [ $copyRTAS -gt 0 ]; then\n echo \"Copying to RTAS folder...\"\n RTASDir=/Library/Application\\ Support/Digidesign/Plug-Ins\n if [ -d \"$RTASDir\" ]; then\n RTAS=$RTASDir/$PRODUCT_NAME.dpm\n if [ -d \"$RTAS\" ]; then\n rm -r \"$RTAS\"\n fi\n\n cp -r \"$original\" \"$RTAS\"\n fi\nfi\n\nif [ $copyAAX -gt 0 ]; then\n echo \"Copying to AAX folder...\"\n\n if [ -d \"/Applications/ProTools_3PDev/Plug-Ins\" ]; then\n AAX1=\"/Applications/ProTools_3PDev/Plug-Ins/$PRODUCT_NAME.aaxplugin\"\n\n if [ -d \"$AAX1\" ]; then\n rm -r \"$AAX1\"\n fi\n\n cp -R -H \"$original\" \"$AAX1\"\n fi\n\n if [ -d \"/Library/Application Support/Avid/Audio/Plug-Ins\" ]; then\n AAX2=\"/Library/Application Support/Avid/Audio/Plug-Ins/$PRODUCT_NAME.aaxplugin\"\n\n if [ -d \"$AAX2\" ]; then\n rm -r \"$AAX2\"\n fi\n\n cp -R -H \"$original\" \"$AAX2\"\n fi\nfi\n"; };
|
||||
27A65CD0B053616E226D4547 = {isa = PBXNativeTarget; buildConfigurationList = 92D1022F6276146FC92B4442; buildPhases = (
|
||||
0D832C784AB07BFDE57BCB92,
|
||||
D95827C1509280C88845BCB4,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
companyWebsite="www.juce.com" companyEmail="info@juce.com">
|
||||
<EXPORTFORMATS>
|
||||
<XCODE_MAC targetFolder="Builds/MacOSX" vstFolder="~/SDKs/vstsdk2.4" rtasFolder="~/SDKs/PT_80_SDK"
|
||||
objCExtraSuffix="JuceDemo" aaxFolder="~/SDKs/AAX" postbuildCommand=" # This script takes the build product and copies it to the AU, VST, VST3, RTAS and AAX folders, depending on # which plugin types you've built original=$CONFIGURATION_BUILD_DIR/$FULL_PRODUCT_NAME # this looks inside the binary to detect which platforms are needed.. copyAU=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'AudioUnit' | wc -l` copyVST=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'VSTPlugin' | wc -l` copyVST3=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'GetPluginFactory' | wc -l` copyRTAS=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'CProcess' | wc -l` copyAAX=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'ACFStartup' | wc -l` if [ $copyAU -gt 0 ]; then echo "Copying to AudioUnit folder..." AU=~/Library/Audio/Plug-Ins/Components/$PRODUCT_NAME.component if [ -d "$AU" ]; then rm -r "$AU" fi cp -r "$original" "$AU" sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$AU/Contents/PkgInfo" sed -i "" -e 's/TDMw/BNDL/g' "$AU/Contents/$INFOPLIST_FILE" # Fix info.plist for AUs built with Xcode 3 if [ -f "$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp" ]; then echo else echo "Removing AudioComponents entry from Info.plist because this is not a new-format AU" /usr/libexec/PlistBuddy -c "Delete AudioComponents" "$AU/Contents/Info.plist" fi fi if [ $copyVST -gt 0 ]; then echo "Copying to VST folder..." VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst if [ -d "$VST" ]; then rm -r "$VST" fi cp -r "$original" "$VST" sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$VST/Contents/PkgInfo" sed -i "" -e 's/TDMw/BNDL/g' "$VST/Contents/$INFOPLIST_FILE" fi if [ $copyVST3 -gt 0 ]; then echo "Copying to VST3 folder..." VST3=~/Library/Audio/Plug-Ins/VST3/$PRODUCT_NAME.vst3 if [ -d "$VST3" ]; then rm -r "$VST3" fi cp -r "$original" "$VST3" sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$VST3/Contents/PkgInfo" sed -i "" -e 's/TDMw/BNDL/g' "$VST3/Contents/$INFOPLIST_FILE" fi if [ $copyRTAS -gt 0 ]; then echo "Copying to RTAS folder..." RTAS=/Library/Application\ Support/Digidesign/Plug-Ins/$PRODUCT_NAME.dpm if [ -d "$RTAS" ]; then rm -r "$RTAS" fi cp -r "$original" "$RTAS" fi if [ $copyAAX -gt 0 ]; then echo "Copying to AAX folder..." if [ -d "/Applications/ProTools_3PDev/Plug-Ins" ]; then AAX1="/Applications/ProTools_3PDev/Plug-Ins/$PRODUCT_NAME.aaxplugin" if [ -d "$AAX1" ]; then rm -r "$AAX1" fi cp -r "$original" "$AAX1" fi if [ -d "/Library/Application Support/Avid/Audio/Plug-Ins" ]; then AAX2="/Library/Application Support/Avid/Audio/Plug-Ins/$PRODUCT_NAME.aaxplugin" if [ -d "$AAX2" ]; then rm -r "$AAX2" fi cp -r "$original" "$AAX2" fi fi "
|
||||
objCExtraSuffix="JuceDemo" aaxFolder="~/SDKs/AAX" postbuildCommand=""
|
||||
vst3Folder="~/SDKs/VST3 SDK">
|
||||
<CONFIGURATIONS>
|
||||
<CONFIGURATION name="Debug" isDebug="1" optimisation="1" targetName="JuceDemoPlugin"
|
||||
|
|
|
|||
|
|
@ -1422,7 +1422,9 @@ static const unsigned char temp_binary_data_21[] =
|
|||
"\r\n"
|
||||
"if [ $copyAU -gt 0 ]; then\r\n"
|
||||
" echo \"Copying to AudioUnit folder...\"\r\n"
|
||||
" AU=~/Library/Audio/Plug-Ins/Components/$PRODUCT_NAME.component\r\n"
|
||||
" AUDir=~/Library/Audio/Plug-Ins/Components\r\n"
|
||||
" mkdir -p \"$AUDir\"\r\n"
|
||||
" AU=$AUDir/$PRODUCT_NAME.component\r\n"
|
||||
" if [ -d \"$AU\" ]; then \r\n"
|
||||
" rm -r \"$AU\"\r\n"
|
||||
" fi\r\n"
|
||||
|
|
@ -1442,7 +1444,9 @@ static const unsigned char temp_binary_data_21[] =
|
|||
"\r\n"
|
||||
"if [ $copyVST -gt 0 ]; then\r\n"
|
||||
" echo \"Copying to VST folder...\"\r\n"
|
||||
" VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst\r\n"
|
||||
" VSTDir=~/Library/Audio/Plug-Ins/VST\r\n"
|
||||
" mkdir -p \"$VSTDir\"\r\n"
|
||||
" VST=$VSTDir/$PRODUCT_NAME.vst\r\n"
|
||||
" if [ -d \"$VST\" ]; then \r\n"
|
||||
" rm -r \"$VST\"\r\n"
|
||||
" fi\r\n"
|
||||
|
|
@ -1454,7 +1458,9 @@ static const unsigned char temp_binary_data_21[] =
|
|||
"\r\n"
|
||||
"if [ $copyVST3 -gt 0 ]; then\r\n"
|
||||
" echo \"Copying to VST3 folder...\"\r\n"
|
||||
" VST3=~/Library/Audio/Plug-Ins/VST3/$PRODUCT_NAME.vst3\r\n"
|
||||
" VST3Dir=~/Library/Audio/Plug-Ins/VST3\r\n"
|
||||
" mkdir -p \"$VST3Dir\"\r\n"
|
||||
" VST3=$VST3Dir/$PRODUCT_NAME.vst3\r\n"
|
||||
" if [ -d \"$VST3\" ]; then \r\n"
|
||||
" rm -r \"$VST3\"\r\n"
|
||||
" fi\r\n"
|
||||
|
|
@ -1466,12 +1472,15 @@ static const unsigned char temp_binary_data_21[] =
|
|||
"\r\n"
|
||||
"if [ $copyRTAS -gt 0 ]; then\r\n"
|
||||
" echo \"Copying to RTAS folder...\"\r\n"
|
||||
" RTAS=/Library/Application\\ Support/Digidesign/Plug-Ins/$PRODUCT_NAME.dpm\r\n"
|
||||
" if [ -d \"$RTAS\" ]; then\r\n"
|
||||
" rm -r \"$RTAS\"\r\n"
|
||||
" fi\r\n"
|
||||
" RTASDir=/Library/Application\\ Support/Digidesign/Plug-Ins\r\n"
|
||||
" if [ -d \"$RTASDir\" ]; then\r\n"
|
||||
" RTAS=$RTASDir/$PRODUCT_NAME.dpm\r\n"
|
||||
" if [ -d \"$RTAS\" ]; then\r\n"
|
||||
" rm -r \"$RTAS\"\r\n"
|
||||
" fi\r\n"
|
||||
"\r\n"
|
||||
" cp -r \"$original\" \"$RTAS\"\r\n"
|
||||
" cp -r \"$original\" \"$RTAS\"\r\n"
|
||||
" fi\r\n"
|
||||
"fi\r\n"
|
||||
"\r\n"
|
||||
"if [ $copyAAX -gt 0 ]; then\r\n"
|
||||
|
|
@ -4096,7 +4105,7 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
|
|||
case 0x0842c43c: numBytes = 308; return jucer_NewCppFileTemplate_h;
|
||||
case 0x36e634a1: numBytes = 1626; return jucer_NewInlineComponentTemplate_h;
|
||||
case 0x7fbac252: numBytes = 1827; return jucer_OpenGLComponentTemplate_cpp;
|
||||
case 0x44be9398: numBytes = 2922; return AudioPluginXCodeScript_txt;
|
||||
case 0x44be9398: numBytes = 3108; return AudioPluginXCodeScript_txt;
|
||||
case 0x4a0cfd09: numBytes = 151; return background_tile_png;
|
||||
case 0x763d39dc: numBytes = 1050; return colourscheme_dark_xml;
|
||||
case 0xe8b08520: numBytes = 1050; return colourscheme_light_xml;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ namespace BinaryData
|
|||
const int jucer_OpenGLComponentTemplate_cppSize = 1827;
|
||||
|
||||
extern const char* AudioPluginXCodeScript_txt;
|
||||
const int AudioPluginXCodeScript_txtSize = 2922;
|
||||
const int AudioPluginXCodeScript_txtSize = 3108;
|
||||
|
||||
extern const char* background_tile_png;
|
||||
const int background_tile_pngSize = 151;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@ copyAAX=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'ACFStartup
|
|||
|
||||
if [ $copyAU -gt 0 ]; then
|
||||
echo "Copying to AudioUnit folder..."
|
||||
AU=~/Library/Audio/Plug-Ins/Components/$PRODUCT_NAME.component
|
||||
AUDir=~/Library/Audio/Plug-Ins/Components
|
||||
mkdir -p "$AUDir"
|
||||
AU=$AUDir/$PRODUCT_NAME.component
|
||||
if [ -d "$AU" ]; then
|
||||
rm -r "$AU"
|
||||
fi
|
||||
|
|
@ -33,7 +35,9 @@ fi
|
|||
|
||||
if [ $copyVST -gt 0 ]; then
|
||||
echo "Copying to VST folder..."
|
||||
VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst
|
||||
VSTDir=~/Library/Audio/Plug-Ins/VST
|
||||
mkdir -p "$VSTDir"
|
||||
VST=$VSTDir/$PRODUCT_NAME.vst
|
||||
if [ -d "$VST" ]; then
|
||||
rm -r "$VST"
|
||||
fi
|
||||
|
|
@ -45,7 +49,9 @@ fi
|
|||
|
||||
if [ $copyVST3 -gt 0 ]; then
|
||||
echo "Copying to VST3 folder..."
|
||||
VST3=~/Library/Audio/Plug-Ins/VST3/$PRODUCT_NAME.vst3
|
||||
VST3Dir=~/Library/Audio/Plug-Ins/VST3
|
||||
mkdir -p "$VST3Dir"
|
||||
VST3=$VST3Dir/$PRODUCT_NAME.vst3
|
||||
if [ -d "$VST3" ]; then
|
||||
rm -r "$VST3"
|
||||
fi
|
||||
|
|
@ -57,12 +63,15 @@ fi
|
|||
|
||||
if [ $copyRTAS -gt 0 ]; then
|
||||
echo "Copying to RTAS folder..."
|
||||
RTAS=/Library/Application\ Support/Digidesign/Plug-Ins/$PRODUCT_NAME.dpm
|
||||
if [ -d "$RTAS" ]; then
|
||||
rm -r "$RTAS"
|
||||
fi
|
||||
RTASDir=/Library/Application\ Support/Digidesign/Plug-Ins
|
||||
if [ -d "$RTASDir" ]; then
|
||||
RTAS=$RTASDir/$PRODUCT_NAME.dpm
|
||||
if [ -d "$RTAS" ]; then
|
||||
rm -r "$RTAS"
|
||||
fi
|
||||
|
||||
cp -r "$original" "$RTAS"
|
||||
cp -r "$original" "$RTAS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $copyAAX -gt 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue