Fix setting app icon file on recent macOS
This commit is contained in:
parent
9cb9e58b31
commit
5fad7e03b2
@ -883,8 +883,14 @@ 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
|
||||
sips -i ${ICNSTMP}.icns
|
||||
DeRez -only icns ${ICNSTMP}.icns > ${ICNSTMP}.rsrc
|
||||
if test $(sw_vers -productVersion | cut -d '.' -f 2) -lt 13; then
|
||||
sips -i ${ICNSTMP}.icns
|
||||
DeRez -only icns ${ICNSTMP}.icns > ${ICNSTMP}.rsrc
|
||||
else
|
||||
ICNSBASE=`basename ${ICNSTMP}.icns`
|
||||
echo "read 'icns' (-16455) \"${ICNSBASE}\";" > ${ICNSTMP}.rsrc
|
||||
fi
|
||||
|
||||
Rez -append ${ICNSTMP}.rsrc -o "$UC_DMG"
|
||||
SetFile -a C "$UC_DMG"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user