Set the folder icon for the mounted .dmg file.

Originally committed to SVN as r2561.
This commit is contained in:
Amar Takhar 2008-12-29 11:05:30 +00:00
parent da6d05d79e
commit edc3d7c75a
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,7 @@ ln -vsf /Applications "${TMP_DMG}"
mkdir -v ${TMP_DMG}/.background
cp -v packages/osx_dmg/dmg_background.png ${TMP_DMG}/.background/background.png
cp -v packages/osx_dmg/DS_Store ${TMP_DMG}/.DS_Store
cp -v packages/osx_bundle/Contents/Resources/Aegisub.icns ${TMP_DMG}/.VolumeIcon.icns
echo
echo "---- Creating image ----"
@ -47,6 +48,10 @@ echo
echo "---- Setting bless -openfolder \"/Volumes/${PKG_NAME_VOLUME}\" ----"
bless -openfolder "/Volumes/${PKG_NAME_VOLUME}"
echo
echo "---- Setting root icon using SetFile ----"
/usr/bin/SetFile -a C "/Volumes/${PKG_NAME_VOLUME}"
echo
echo "---- Detaching ----"
/usr/bin/hdiutil detach "${DEV_NAME}"