feat(tools/internal_generate_release_zips): ensure compression (#161)

This commit is contained in:
Mark Moissette 2024-03-04 22:28:35 +01:00 committed by GitHub
parent 09915f521d
commit 3b7b5f28bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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