Re: OT: custom .dmg files
Re: OT: custom .dmg files
- Subject: Re: OT: custom .dmg files
- From: Ulrik Sverdrup <email@hidden>
- Date: Tue, 18 Mar 2003 20:54:30 +0100
quote cocoadevcentral.com (indirectly this list):
http://cocoadevcentral.com/articles/000022.php#000022
"// Question Five
I'm trying to "package" my app for deployment and want to use a custom
background picture for the window that appears when the user
double-clicks the volume that appears after being mounted from a .dmg
file. The picture (a jpeg) appears in my disk image (having been set in
the Show View Options window from the Finder; selecting the Picture
radio button in the Background section. However, after ejecting the
image and sending it to another computer, the picture is gone. I assume
that the picture is stored somewhere on my system and not with the
folder or volume. How can I make the picture stick with the volume?
Answer
Move the file onto the diskimage, and select that copy as your
background image in Finder. Now, fire up the terminal and type:
/Developer/Tools/SetFile -a V /Volumes/YourDmg/YourImage.jpg Eject the
image and reinsert it and make sure that the image is there and that
the image file is invisible.
answer by: David Remahl on cocoa-dev mailing list."
and:
http://cocoadevcentral.com/articles/000012.php#000012
"// Question Six
Does anyone know how to package apps in .dmg format?
Answer
Here is a sample session.
> hdiutil create -megabytes 20 Foo.dmg <- creates a 20 Meg Foo.dmg.
This is read-write.
> hdid -nomount Foo.dmg <- will mount the image, but not tell the
system, trust me you want -nomount
> sudo newfs_hfs /dev/disk# <- the number is given at the end of the
previous commmand
> hdiutil eject /dev/disk# <- eject it
> hdid Foo.dmg <- mount it editable
Now use the finder to put the files in the image and rename the volume
from untitled
when finished eject the image
> hdiutil convert -format UDCO Foo.dmg -o FinalNameYouwant.dmg -noext
You should end up with a compressed dmg that is suitable for the
internet.
answer by: Eric Peyton"
By creating a large r/w dmg you can set the window size, icon placement
and background like you want it and then convert it to a compressed
read-only dmg, which will look just as you want.
Ulrik
tisdagen den 18 mars 2003 kl 20.13 skrev Nick:
I know that this is OT (although packaging is a part of software
development)... anyway, to the point:
How does one create custom .dmg packages. By "custom" I mean with
background images, specific window sizes, etc. Omni, for example,
packages their software downloads in this way.
Thanx!
Nick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.