Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Fix compression method for pext files
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed May 12, 2022
1 parent 4343127 commit ac1bc5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.5.5

- fix compression method for .pext files (was LZMA is now Deflate)

## 2.5.4

- Extensions are now published as `.pext` files and can be installed via the manifest
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def pack_plugin(plugin: str, build_output_path: str):

zip_output_path = os.path.join(output_path, f"{plugin}.pext")
print(f"Packing plugin {plugin} to {zip_output_path}")
with zipfile.ZipFile(zip_output_path, "w", zipfile.ZIP_LZMA) as myzip:
with zipfile.ZipFile(zip_output_path, "w", zipfile.ZIP_DEFLATED) as myzip:
for root, dirs, files in os.walk(build_output_path):
for file in files:
myzip.write(os.path.join(root, file), file)
Expand Down

0 comments on commit ac1bc5e

Please sign in to comment.