Mac zip compress without __MACOSX folder?

后端 未结 14 1523
有刺的猬
有刺的猬 2020-12-07 06:53

When I compress files with the built in zip compressor in Mac OSX, it results in an extra folder titled \"__MACOSX\" created in the extracted zip.

Can I adjust my se

14条回答
  •  攒了一身酷
    2020-12-07 07:17

    do not zip any hidden file:

    zip newzipname filename.any  -x "\.*"
    

    with this question, it should be like:

    zip newzipname filename.any  -x "\__MACOSX"
    

    It must be said, though, zip command runs in terminal just compressing the file, it does not compress any others. So do this the result is the same:

    zip newzipname filename.any
    

提交回复
热议问题