diff --git a/extras/Introjucer/JuceLibraryCode/BinaryData.cpp b/extras/Introjucer/JuceLibraryCode/BinaryData.cpp index 07e56722d6..8fe7e50556 100644 --- a/extras/Introjucer/JuceLibraryCode/BinaryData.cpp +++ b/extras/Introjucer/JuceLibraryCode/BinaryData.cpp @@ -31,6 +31,14 @@ static const unsigned char temp_43731c40[] = " cp -r \"$original\" \"$AU\"\r\n" " sed -i \"\" -e 's/TDMwPTul/BNDLPTul/g' \"$AU/Contents/PkgInfo\"\r\n" " sed -i \"\" -e 's/TDMw/BNDL/g' \"$AU/Contents/$INFOPLIST_FILE\"\r\n" +"\r\n" +" # Fix info.plist for AUs built with Xcode 3\r\n" +" if [ -f \"$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp\" ]; then\r\n" +" # (nothing)\r\n" +" else\r\n" +" echo \"Removing AudioComponents entry from Info.plist because this is not a new-format AU\"\r\n" +" /usr/libexec/PlistBuddy -c \"Delete AudioComponents\" \"$original/Contents/Info.plist\"\r\n" +" fi\r\n" "fi\r\n" "\r\n" "if [ $copyVST -gt 0 ]; then\r\n" @@ -1162,7 +1170,7 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw switch (hash) { - case 0x44be9398: numBytes = 2101; return AudioPluginXCodeScript_txt; + case 0x44be9398: numBytes = 2477; 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; diff --git a/extras/Introjucer/JuceLibraryCode/BinaryData.h b/extras/Introjucer/JuceLibraryCode/BinaryData.h index 033c8bcd63..55c3517a3e 100644 --- a/extras/Introjucer/JuceLibraryCode/BinaryData.h +++ b/extras/Introjucer/JuceLibraryCode/BinaryData.h @@ -7,7 +7,7 @@ namespace BinaryData { extern const char* AudioPluginXCodeScript_txt; - const int AudioPluginXCodeScript_txtSize = 2101; + const int AudioPluginXCodeScript_txtSize = 2477; extern const char* background_tile_png; const int background_tile_pngSize = 151; diff --git a/extras/Introjucer/Source/BinaryData/AudioPluginXCodeScript.txt b/extras/Introjucer/Source/BinaryData/AudioPluginXCodeScript.txt index 81c9680f8d..808ed46d17 100644 --- a/extras/Introjucer/Source/BinaryData/AudioPluginXCodeScript.txt +++ b/extras/Introjucer/Source/BinaryData/AudioPluginXCodeScript.txt @@ -20,6 +20,14 @@ if [ $copyAU -gt 0 ]; then 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 + # (nothing) + else + echo "Removing AudioComponents entry from Info.plist because this is not a new-format AU" + /usr/libexec/PlistBuddy -c "Delete AudioComponents" "$original/Contents/Info.plist" + fi fi if [ $copyVST -gt 0 ]; then