How to create a zip file in the same format as the Finder's "Compress" menu item?
Posted
by benzado
on Stack Overflow
See other posts from Stack Overflow
or by benzado
Published on 2008-09-20T11:04:29Z
Indexed on
2010/03/18
20:41 UTC
Read the original article
Hit count: 223
On Mac OS X, you can create a zip archive from the Finder by selecting some files and selecting "Compress" from the contextual menu or the File menu. Unfortunately, the resulting file is not identical to the archive created by the zip
command (with the default options).
This distinction matters to at least one service operated by Apple, which fails to accept archives created with the zip
command. Having to create archives manually is preventing me from fully automating my release build process.
How can I create a zip archive in the correct format within a shell script?
© Stack Overflow or respective owner