Added a shell script phase to set the GrowlMail mailbundle's icon as a custom icon.
1.1 --- a/Extras/GrowlMail/GrowlMail.xcodeproj/project.pbxproj Sat Oct 03 17:40:47 2009 -0700
1.2 +++ b/Extras/GrowlMail/GrowlMail.xcodeproj/project.pbxproj Sat Oct 03 18:07:35 2009 -0700
1.3 @@ -376,6 +376,7 @@
1.4 8D5B49B3048680CD000E48DA /* Frameworks */,
1.5 935AC2DB1024C1C700BFD7F2 /* ShellScript */,
1.6 310EE298107661310070CD78 /* Set Bundle Bit */,
1.7 + 310BAD8D1078272800741E3D /* Set Custom Icon */,
1.8 );
1.9 buildRules = (
1.10 );
1.11 @@ -555,6 +556,22 @@
1.12 /* End PBXResourcesBuildPhase section */
1.13
1.14 /* Begin PBXShellScriptBuildPhase section */
1.15 + 310BAD8D1078272800741E3D /* Set Custom Icon */ = {
1.16 + isa = PBXShellScriptBuildPhase;
1.17 + buildActionMask = 2147483647;
1.18 + files = (
1.19 + );
1.20 + inputPaths = (
1.21 + "$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/GrowlMail.icns",
1.22 + );
1.23 + name = "Set Custom Icon";
1.24 + outputPaths = (
1.25 + "$(BUILT_PRODUCTS_DIR)/$(WRAPPER_NAME)/Icon",
1.26 + );
1.27 + runOnlyForDeploymentPostprocessing = 0;
1.28 + shellPath = /bin/sh;
1.29 + shellScript = "if [[ -d \"${DERIVED_FILE_DIR}\" ]]; then\n\ttrue\nelse\n\tmkdir \"${DERIVED_FILE_DIR}\"\nfi\nrez_file=\"${DERIVED_FILE_DIR}/GrowlMail.icns.r\"\nicon_file=\"${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Icon\"$'\\r'\n\necho \"Data 'icns' (-16455) {\" > \"$rez_file\"\nxxd -plain -c35 < \"${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GrowlMail.icns\" | sed 's/.*/$\"&\"/' >> \"$rez_file\"\necho \"};\" >> \"$rez_file\"\n\nRez -useDF \"$rez_file\" -o \"$icon_file\"\nSetFile -a V \"$icon_file\"\nSetFile -a C \"${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}\"";
1.30 + };
1.31 310EE298107661310070CD78 /* Set Bundle Bit */ = {
1.32 isa = PBXShellScriptBuildPhase;
1.33 buildActionMask = 2147483647;