macOS - Compress without .DS_Store and __MACOSX

 This command did it for me:

zip -r Target.zip Source -x "*.DS_Store"

Target.zip is the zip file to create. Source is the source file/folder to zip up. And the -x parameter specifies the file/folder to exclude. If the above doesn't work for whatever reason, try this instead:

zip -r Target.zip Source -x "*.DS_Store" -x "__MACOSX"

https://stackoverflow.com/a/22561483


Work well
  • Right click --> Compress
  • zip -d Archive.zip __MACOSX/\*
  • Check deleted __MACOSX: zipinfo Archive.zip

Post a Comment

emo-but-icon

Follow Us

Hot in week

Recent

Comments

Side Ads

Text Widget

Connect Us

item