• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting better compression [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting better compression [SOLVED]


  • Subject: Re: Getting better compression [SOLVED]
  • From: Michael Ash <email@hidden>
  • Date: Mon, 16 Feb 2009 10:13:20 -0500

On Mon, Feb 16, 2009 at 6:14 AM, Graham Cox <email@hidden> wrote:
>
> On 16 Feb 2009, at 10:05 pm, Jean-Daniel Dupas wrote:
>
>> I think by default zip compresses symlink target instead of the link
>> itself. If you have frameworks in your package, it's possible that zip
>> duplicates you frameworks' headers, executables, and resources.
>>
>> See the -y option:
>>
>> -y     Store symbolic links as such in the zip archive, instead of
>> compressing and storing the file referred to by the link (UNIX only).
>>
>
> Bingo!
>
> That does the trick... thanks very much :)

Note that if your goal is to replicate what the Finder does, you
should use the 'ditto' command instead. From the man page:

     The command:
           ditto -c -k --sequesterRsrc --keepParent src_directory archive.zip
     will create a PKZip archive similarly to the Finder's Compress function-
     ality.

This gives you a zip file with the same structure and semantics as
what Finder does, and also nice things like preserving resource forks
(as well as, presumably, the symlink thing).

Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Getting better compression (From: Graham Cox <email@hidden>)
 >Re: Getting better compression (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Getting better compression (From: Graham Cox <email@hidden>)
 >Re: Getting better compression (From: Graham Cox <email@hidden>)
 >Re: Getting better compression (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Getting better compression [SOLVED] (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTimer Question
  • Next by Date: Re: Retrieve Default Currency Type in Mac, iPhone
  • Previous by thread: Re: Getting better compression [SOLVED]
  • Next by thread: Re: Getting better compression
  • Index(es):
    • Date
    • Thread