Re: zipping like Archive Utility
Re: zipping like Archive Utility
- Subject: Re: zipping like Archive Utility
- From: Karl Moskowski <email@hidden>
- Date: Tue, 27 Jul 2010 11:16:59 -0400
On 2010-07-27, at 9:43 AM, Matt Gough wrote:
> I am automating my build process so that my built Installer package gets zipped up before uploading to a web site. Previously I have manually used Finder's Compress option to do this (which goes via Archive Utility)
>
> I tried just using zip, but that gave substantially larger archive sizes.
> I can't do it via 'open -a 'Archive Utility' <ThingToCompress>' as the script it is running from won't have a usable WindowServer at the time.
>
> The closest (in size) that I have got is:
>
> tar -zcf "My Installer.zip" "My Installer.mpkg"
>
> However whilst the resultant file can be expanded via Archive Utility, attempting to get Safari to decompress it after download results in a "Decompression failed" error.
>
> Any ideas?
>
> Matt Gough
tar -zcf creates a gzip archive, not PKZip. Archive Utility can expand gzip archives as well as PKZip. Merely changing the extension won't change the tar's output file format.
As others have mentioned, ditto is the command-line tool that can create Archive Utility-compatible PKZip archives, with preserved file attributes, resource forks, symlinks, etc.
----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden