mirror of
https://github.com/morgan9e/helium
synced 2026-04-15 00:44:06 +09:00
Fix zip compression level (#3555)
This commit is contained in:
@@ -70,7 +70,7 @@ def _get_archive_writer(output_path, timestamp=None):
|
||||
info = zipfile.ZipInfo.from_file(in_path, arc_path)
|
||||
info.date_time = zip_date_time
|
||||
with open(in_path, 'rb') as in_file:
|
||||
output_archive.writestr(info, in_file.read())
|
||||
output_archive.writestr(info, in_file.read(), zipfile.ZIP_DEFLATED, -1)
|
||||
else:
|
||||
output_archive.write(in_path, arc_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user