Skip to content

Commit 4f50d27

Browse files
committed
enable standard zip ("deflate") compression
This saves ~50% on the main bundle and will save ~85% on the fonts bundle
1 parent 7dadcc7 commit 4f50d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def build_bundle(libs, bundle_version, output_filename, package_folder_prefix,
205205
print()
206206
print("Zipping")
207207

208-
with zipfile.ZipFile(output_filename, 'w') as bundle:
208+
with zipfile.ZipFile(output_filename, 'w', compression=zipfile.ZIP_DEFLATED) as bundle:
209209
build_metadata = {"build-tools-version": build_tools_version}
210210
bundle.comment = json.dumps(build_metadata).encode("utf-8")
211211
if multiple_libs:

0 commit comments

Comments
 (0)