enable standard zip ("deflate") compression

This saves ~50% on the main bundle and will save ~85% on the fonts bundle
This commit is contained in:
Jeff Epler 2023-12-19 11:23:53 -06:00
parent 7dadcc70aa
commit 4f50d277da
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -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: