From 3b7b5f28bd48a0a651fca2a97e9601ed1438bebd Mon Sep 17 00:00:00 2001 From: Mark Moissette Date: Mon, 4 Mar 2024 22:28:35 +0100 Subject: [PATCH] feat(tools/internal_generate_release_zips): ensure compression (#161) --- tools/internal_generate_release_zips.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/internal_generate_release_zips.py b/tools/internal_generate_release_zips.py index b73bd71..f14f6a4 100644 --- a/tools/internal_generate_release_zips.py +++ b/tools/internal_generate_release_zips.py @@ -21,8 +21,8 @@ def zipdir(path, ziph): os.path.relpath(os.path.join(root, file), os.path.join(path, '..'))) -with zipfile.ZipFile("bevy_components.zip", mode="w") as archive: +with zipfile.ZipFile("bevy_components.zip", mode="w", compression=zipfile.ZIP_DEFLATED) as archive: zipdir('./bevy_components', archive) -with zipfile.ZipFile("gltf_auto_export.zip", mode="w") as archive: +with zipfile.ZipFile("gltf_auto_export.zip", mode="w", compression=zipfile.ZIP_DEFLATED) as archive: zipdir('./gltf_auto_export', archive) \ No newline at end of file