Skip to content

Commit

Permalink
fix compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume CHAPEAU committed Dec 31, 2024
1 parent 76da702 commit 80287e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
path_prefix = len(os.path.abspath(game_data_path)) + 1

print("=== CREATE PAK ===")
with zipfile.ZipFile(os.path.join(workdir, pak_file), 'w') as pak:
with zipfile.ZipFile(os.path.join(workdir, pak_file), 'w', zipfile.ZIP_DEFLATED) as pak:
print(f"> root dir : {os.path.abspath(game_data_path)}")
for datadir in data_dirs:
datadir_prefix = path_prefix + len(datadir) + 1
Expand All @@ -41,7 +41,7 @@

for textdir in text_dirs:
textdir_prefix =path_prefix + len(textdir) + 1
with zipfile.ZipFile(os.path.join(workdir, lang_file), 'w') as pak:
with zipfile.ZipFile(os.path.join(workdir, lang_file), 'w', zipfile.ZIP_DEFLATED) as pak:
print(f"> add {textdir} in pak")
for root, dirs, files in os.walk(os.path.join(workdir, game_data_path, textdir)):
for file in files:
Expand Down

0 comments on commit 80287e4

Please sign in to comment.