[Pythonmac-SIG] Why Do I Explicitly Need MacPython
Marc Hedlund
marc at precipice.org
Tue Sep 26 21:50:34 CEST 2006
I have a python script to make .dmg files, including license
click-throughs, icon sizing and positioning, and background images. (I
haven't dealt with custom disk icons yet.) I'd be happy to contribute it
if it would help others.
Background images, and particularly getting the .dmg to open in icon view
rather than list view, turns out to be a huge pain. I use a very hackish
way of getting it to work, but all the other resources I consulted seem to
use the same or similar methods. I'm just happy it finally works.
-M
On Tue, 26 Sep 2006, Russell E. Owen wrote:
> In article <451976A9.5050102 at niessink.com>,
> Frank Niessink <frank at niessink.com> wrote:
>
>> Russell E Owen:
>>> At 5:05 PM +0200 2006-09-23, Ronald Oussoren wrote:
>>>> ...I'm -0 on adding support for DMGs. Using a DMG doesn't buy
>>>> enough over a zip to warrant spending time on it.
>>>
>>> I was offering my own time. I've found them helpful for two reasons:
>>> - They can be reliably opened. I used to distribute my app as a zip
>>> archive, but for some reason some of my users tried to use old
>>> versions of Stuffit Expander instead of the built in BOMHelper to
>>> unpack them, resulting in an unusable application. I've had no such
>>> complaints since switching to .dmg files (yet; I suppose some user,
>>> somewhere, has figured out how to mis-open dmg files).
>>> - Convenient for the user: no disk clutter and need to discard the
>>> unpacked package when finished. Just eject.
>>
>> Maybe I missed it (or maybe there are disadvantages I am not aware of),
>> but I think I did not see the suggestion to simply use the hdiutil
>> command. The snippet below is part of the Makefile for building a Task
>> Coach release. The make.py is a distutil script that creates
>> TaskCoach.app. hdiutil then packages the app as a dmg:
>>
>> macdist: icons i18n
>> $(PYTHON) make.py py2app
>> hdiutil create -ov -imagekey zlib-level=9 -srcfolder
>> build/TaskCoach.app dist/TaskCoach.dmg
>
> Yes, I was thinking of using hdituil when I suggested it. However, Bob
> Ippolito would prefer that bdist_mpkg *not* be capable of making disk
> images of packages. He's fine with py2app making .dmg files so it may be
> worth submitting a patch for that. Are you offering?
>
> -- Russell
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
More information about the Pythonmac-SIG
mailing list