[Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

Ronald Oussoren ronaldoussoren at mac.com
Tue Mar 13 05:42:36 CET 2012


On 12 Mar, 2012, at 11:34, João Vale wrote:

> I run this command in my setup.py after the .app is generated, and it's been serving me well:
> 
> ditto --rsrc --arch i386 file.app new_file.app

Cool trick, and it doesn't even rely on the developer tools.

I've filed an issue in the macholib tracker to remind me that this should be functionality in that library (which can then be used by py2app). Macholib already understands a  lot about the structure of mac binaries, with some luck it will be easy to remove architectures from binaries.

Ronald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4788 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20120312/01500d55/attachment.bin>


More information about the Pythonmac-SIG mailing list