Deterministic zip files #553
-
Hi, does the zip.js library support generation of deterministic zip files? I.e. the zipped files of identical files have the same SHA checksums. Like the '-X' / '--no-extra' option for zip. From the zip man page:
A post on SO about this https://stackoverflow.com/a/72272606/12019249 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
if I read correctly, the equivalent of EDIT: You should also set |
Beta Was this translation helpful? Give feedback.
-
Yes, that worked! Thanks for the quick reply ✨ |
Beta Was this translation helpful? Give feedback.
-
You're welcome! |
Beta Was this translation helpful? Give feedback.
if I read correctly, the equivalent of
-X
in zip.js is to set the optionextendedTimestamp
tofalse
.EDIT: You should also set
useCompressionStream
tofalse
to make sure the compressed data is always the same (see #554) across different environments.