Skip to content

Commit 4488eab

Browse files
authored
feat(preprod): use deflated compression when creating the zip file (#2800)
We forgot to turn this on and nothing was being compressed. 😅 I'm seeing a 20MB archive get compressed -> ~10MB now which is as expected. Resolves EME-361
1 parent 1b34a33 commit 4488eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/build/normalize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn add_entries_to_zip(
4545
// This is important as an optimization to avoid re-uploading the same chunks if they're already on the server
4646
// but the last modified time being different will cause checksums to be different.
4747
let options = SimpleFileOptions::default()
48-
.compression_method(zip::CompressionMethod::Stored)
48+
.compression_method(zip::CompressionMethod::Deflated)
4949
.last_modified_time(DateTime::default());
5050

5151
for (entry_path, relative_path) in entries {

0 commit comments

Comments
 (0)