Re: Disk Image + Background Program?
Re: Disk Image + Background Program?
- Subject: Re: Disk Image + Background Program?
- From: "Paul Sanders" <email@hidden>
- Date: Wed, 3 Mar 2010 22:02:39 -0000
Lifted straight from my 'make_release' shell script (you
will have to fill in a few blanks yourself):
-----------------------------------
echo "hdiutil"
hdiutil create rw.dmg -format UDRW
-volname "$vol" -srcfolder "$mpkg"
echo ""
echo "add images to DMG"
hdiutil attach
rw.dmg
cp VolumeIcon.icns
"/Volumes/$vol/.VolumeIcon.icns"
/Developer/Tools/SetFile -a C
"/Volumes/$vol/"
mkdir "/Volumes/$vol/.background"
cp ../about.jpg
"/Volumes/$vol/.background/background.jpg"
echo '
tell application
"Finder"
tell disk
"'$vol'"
open
set
theViewOptions to the icon view options of container
window
set
background picture of theViewOptions to file
".background:background.jpg"
update without registering
applications
-- delay
5
end tell
end tell
' |
osascript
sync
hdiutil detach "/Volumes/$vol"
echo ""
echo "compress DMG"
hdiutil convert rw.dmg
-format UDZO -imagekey zlib-level=9 -o "$dmg"
rm rw.dmg
echo ""
echo "Done!"
-----------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden