Re: zipping like Archive Utility
Re: zipping like Archive Utility
- Subject: Re: zipping like Archive Utility
- From: Matt Gough <email@hidden>
- Date: Tue, 27 Jul 2010 15:58:50 +0100
On 27 Jul 2010, at 15:51:23, Jean-Daniel Dupas wrote:
>
> Le 27 juil. 2010 à 16:43, Matt Gough a écrit :
>
>> 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?
>
>
> Have you tried using the proper extension instead of .zip ?
>
> tar -czf "My Installer.tgz" "My Installer.mpkg"
>
> Note that you may get better compression using bzip instead of gzip.
>
> tar -cjf "My Installer.tbz" "My Installer.mpkg"
>
>
> -- Jean-Daniel
>
Yes, that is part of the problem. Unfortunately I need a '.zip' file on the server.
I now tried:
tar -czf "My Installer.tgz" "My Installer.mpkg"
zip "My Installer.zip" "My Installer.tgz"
but then Safari only decompresses the zip file, leaving the My Installer.tgz in the Downloads folder.
Matt _______________________________________________
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