mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Set the folder icon for the mounted .dmg file.
Originally committed to SVN as r2561.
This commit is contained in:
parent
da6d05d79e
commit
edc3d7c75a
@ -33,6 +33,7 @@ ln -vsf /Applications "${TMP_DMG}"
|
|||||||
mkdir -v ${TMP_DMG}/.background
|
mkdir -v ${TMP_DMG}/.background
|
||||||
cp -v packages/osx_dmg/dmg_background.png ${TMP_DMG}/.background/background.png
|
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_dmg/DS_Store ${TMP_DMG}/.DS_Store
|
||||||
|
cp -v packages/osx_bundle/Contents/Resources/Aegisub.icns ${TMP_DMG}/.VolumeIcon.icns
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "---- Creating image ----"
|
echo "---- Creating image ----"
|
||||||
@ -47,6 +48,10 @@ echo
|
|||||||
echo "---- Setting bless -openfolder \"/Volumes/${PKG_NAME_VOLUME}\" ----"
|
echo "---- Setting bless -openfolder \"/Volumes/${PKG_NAME_VOLUME}\" ----"
|
||||||
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
|
||||||
echo "---- Detaching ----"
|
echo "---- Detaching ----"
|
||||||
/usr/bin/hdiutil detach "${DEV_NAME}"
|
/usr/bin/hdiutil detach "${DEV_NAME}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user