Last active
November 8, 2025 00:37
-
-
Save oclero/80239e5b740aa658380bb39e1e98577b to your computer and use it in GitHub Desktop.
MacOS - Create a ZIP archive without .DS_Store and __MACOSX files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zip -rX output.zip path/to/input_folder -x ".DS_Store" -x "__MACOSX" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually,
-Xstill does include.DS_Storefiles.