[Pythonmac-SIG] StuffIt 10 can corrupt applications packaged with py2app

Ned Deily nad at acm.org
Wed Apr 25 21:05:48 CEST 2007

In article <462F8858.4 at noaa.gov>,
 Christopher Barker <Chris.Barker at noaa.gov> wrote:
> If a *.dmg is a better bet, then:
> 1) is there a point-and-click and/or drag-and-drop way to create *.dmgs?

Lots of ways.  In 10.4 at least, move the files to be distributed into a 
folder with the name of the volume to be created, launch Disk Utility 
(/Applications/Utilities/Disk Utility.app), then drop the folder onto 
the Disk Utility icon in the dock.  A "New Image From Folder" file 
dialog will appear with the correct name and with "compressed" selected 
as the default Image Format.

Or from a shell command line:

   hdiutil create -srcfolder /path/to/folder /path/to/new_image.dmg

> 2) I don't think that *.dmgs are compressed, is it good practice to 
> compress the resulting *.dmg (*.dmg.zip)

The contents of images can be and are compressed by these methods.  See 
the hdiutil man page for more gory details.

> Ideally, I'd like to get a "Make Disk Image" option when I right click 
> in Finder, just like current "Create Archive" option. Does anyone know 
> how to add an item to that menu?

Again in 10.4, a very simple way is to create a two-step Automator 
workflow using the Get Specified Finder Items action and the Create Disk 
Image From Files action (available here):


Then Save As Plug-in... for Finder and the new workflow should show up 
in the Finder's right click menu under the Automator submenu.

 Ned Deily,
 nad at acm.org

More information about the Pythonmac-SIG mailing list