Skip to content

Commit

Permalink
Fix Hissboom JARs being considered invalid by Java
Browse files Browse the repository at this point in the history
This does have a small penalty in the file savings, but oh well
  • Loading branch information
EnnuiL committed Jun 14, 2024
1 parent 2e848cd commit 92d9884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/hissboom.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def hissboomify_zip(origin: IO[bytes], target: IO[bytes], is_jij: bool):
zip = zipfile.ZipFile(file=origin, mode="r")
new_zip = zipfile.ZipFile(file=target, mode="w", compression=zipfile.ZIP_STORED if is_jij else zipfile.ZIP_DEFLATED)
new_zip = zipfile.ZipFile(file=target, mode="w", compression=zipfile.ZIP_DEFLATED, compresslevel=0 if is_jij else 9, allowZip64=False)
for file in zip.filelist:
if file.is_dir():
new_zip.mkdir(file.filename)
Expand Down

0 comments on commit 92d9884

Please sign in to comment.