dmg was produced in DropDMG as a bzip2 compressed disk image. Consequently the file would fail to open. dmg image, that the browser had added the extension. Voilà! You now have a properly sized, compressed, read-only dmg file that will open as you want it with a background image and links to folders. Hi, I’ve received a few reports of users who found, after downloading a. Remember, NAME is your App/Volume/Dist name, all the rest is verbatim.hdiutil convert -format UDZO tmp.dmg -o NAME.dmg.hdiutil makehybrid -hfs -hfs-volume-name NAME -hfs-openfolder staging staging -o tmp.dmg.In the terminal, go to the directory containing staging and run the following two commands (credit goes to jwz).Put all the same files you put in the Volume into staging, including the.Now make a new directory somewhere, let's call it staging. Mount the volume again (by double-clicking on the dmg file).Make sure you select the one that's inside the Volume's background folder. Arrange the folder as you like it - remove the menu bar, change it to icon mode, make aliases to your install folders and drag them into the window, and using Cmd-J open the Display Preferences to choose the background image.Double-click on the Disk Volume icon on the Desktop, to open it as most users will.Put your background image in that directory.Your new Volume can be found under /Volumes/NAME/ - the directory can be any name, the dot just makes sure it's not visible in the Finder Using the terminal, create a directory called.This creates a Disk Volume mount, and an icon on the Desktop If it's not already open, open the new dmg file.Make sure the Image Format is "read/write disk image". Don't worry if it's bigger than you think you need. Note that you can pick a custom size, not just the preset ones. Volume Size - should be enough to contain your files.Pick a Volume Name - we will from now call it NAME.Here is the step-by-step instruction to making a dmg to distribute your software that will open in icon mode, with a background image, and symbolic links (aliases) to drop your file in.įor people who don't want to "read more" or trust os x magic. Enough is enough - how to make a dmg the way you expect it If you want a GUI for making bzip2 disk images or more I suggest taking a look at other. To change the compression to bzip2 and create a new bzip2 compressed disk image you can run the following command: hdiutil convert /PATH/TO/IMAGE.dmg -format UDBZ -o /PATH/TO/NEW/IMAGE.dmg That said if it's a disk image of images and videos it won't save you much space as the files in question are already compressed. I would suggest changing the compression to bzip2 and see how much space that saves you. The Lion installer disk image compresses down more with the default compression algorithm than it does if converted to UDBZ! Well, except the default compression algorithm in 10.6 seems to work better than UDBZ. In terms of compatibility and file size of the compressed option ADC gives you the worst compression but is compatible all the way back to 10.0, zlib compression back to 10.1 whereas bzip2 is much smaller it takes longer to create and longer to uncompress and requires Mac OS X 10.4 or newer. UDSB - SPARSEBUNDLE (grows with content bundle-backed)īy default Mac OS X will use UDRW for a standard read/write image, UDRO for a read only image and UDZO for an image made using Disk Utility that was chosen as compressed. UFBI - UDIF entire image with MD5 checksum UDBZ - UDIF bzip2-compressed image (OS X 10.4+ only) The different formats you may see (more at man hdiutil): UDRW - UDIF read/write image The Disk Image - is it currently compressed already and if so, did you use the default offered by Disk Utility? You can find out in Disk Utility or by running hdiutil imageinfo /PATH/To/DMG | grep 'Format'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |