Skip to content

Commit

Permalink
chore: Use upx for packing
Browse files Browse the repository at this point in the history
  • Loading branch information
anosora233 committed Apr 28, 2024
1 parent 5586219 commit 96b965f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
with:
python-version: 3.12

- name: Install UPX
uses: crazy-max/ghaction-upx@v3
with:
install-only: true

- name: Pack mhmp
run: |
python -m pip install .[pack]
Expand Down
2 changes: 2 additions & 0 deletions mhmp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exe = EXE(
a.scripts,
[],
exclude_binaries=True,
upx=True,
name=tool,
console=True,
icon="mhmp.ico",
Expand All @@ -25,5 +26,6 @@ coll = COLLECT(
a.binaries,
a.zipfiles,
a.datas,
upx=True,
name=tool,
)

0 comments on commit 96b965f

Please sign in to comment.