Skip to content

Commit

Permalink
enable standard zip ("deflate") compression
Browse files Browse the repository at this point in the history
This saves ~50% on the main bundle and will save ~85% on the fonts bundle
  • Loading branch information
jepler committed Dec 19, 2023
1 parent 7dadcc7 commit 4f50d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuitpython_build_tools/scripts/build_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def build_bundle(libs, bundle_version, output_filename, package_folder_prefix,
print()
print("Zipping")

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

0 comments on commit 4f50d27

Please sign in to comment.