summaryrefslogtreecommitdiff
path: root/tools/osx_packaging
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-07-23 18:27:07 +0200
committerRobin Gareus <robin@gareus.org>2015-07-23 18:27:07 +0200
commit45c9f6b2ff63ccd81c4826a32dab05a98f89968f (patch)
treedf832e6c72c2133edfd99a61cd8b095e73ff5b13 /tools/osx_packaging
parente1f168de110322e7024dfa334b97f3b433907ae1 (diff)
don’t bother to set OSX DMG icon on old systems
`sips -i` fails on 10.5 and SetFile does not work even if the resource file is provided.
Diffstat (limited to 'tools/osx_packaging')
-rwxr-xr-xtools/osx_packaging/osx_build3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build
index 5a30628c02..72234dcf89 100755
--- a/tools/osx_packaging/osx_build
+++ b/tools/osx_packaging/osx_build
@@ -769,6 +769,7 @@ hdiutil eject "${DiskDevice}" || true
# Create a read-only version, use zlib compression
hdiutil convert -format UDZO "${TMPDMG}" -imagekey zlib-level=9 -o "${UC_DMG}"
+if test $(sw_vers -productVersion | cut -d '.' -f 2) -gt 5; then
echo "setting file icon ..."
cp ${PRODUCT_PKG_DIR}/$Resources/appIcon.icns ${ICNSTMP}.icns
@@ -778,6 +779,8 @@ Rez -append ${ICNSTMP}.rsrc -o "$UC_DMG"
SetFile -a C "$UC_DMG"
rm ${ICNSTMP}.icns ${ICNSTMP}.rsrc
+fi
+
rm -rf ${PRODUCT_PKG_DIR}
echo