From 96b965f061e49fb1f066cbe640196a282707fb93 Mon Sep 17 00:00:00 2001 From: anosora233 <86921203+anosora233@users.noreply.github.com> Date: Sun, 28 Apr 2024 20:45:48 +0800 Subject: [PATCH] chore: Use upx for packing --- .github/workflows/release.yml | 5 +++++ mhmp.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04892ee..e06216e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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] diff --git a/mhmp.spec b/mhmp.spec index d028053..1eede12 100644 --- a/mhmp.spec +++ b/mhmp.spec @@ -16,6 +16,7 @@ exe = EXE( a.scripts, [], exclude_binaries=True, + upx=True, name=tool, console=True, icon="mhmp.ico", @@ -25,5 +26,6 @@ coll = COLLECT( a.binaries, a.zipfiles, a.datas, + upx=True, name=tool, )