From c9f069917a98e31981986b8beff3cf46a4fc9cdf Mon Sep 17 00:00:00 2001 From: WinterPhoenix Date: Fri, 27 Sep 2024 00:55:00 -0400 Subject: [PATCH] Actions: Move windows onedir ZIP compression to a separate step --- .github/workflows/main.yml | 4 ++++ pyinstaller_windows.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a12881..ee7e537 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,6 +51,10 @@ jobs: - name: PyInstaller Build run: ${{ runner.os == 'Windows' && 'iex ' || ''}}$(cat pyinstaller_${{ runner.os == 'Windows' && 'windows' || runner.os == 'Linux' && 'linux' || 'macos' }}.txt) + - name: PyInstaller Build (ZIP) + if: ${{ runner.os == 'Windows' }} + run: Compress-Archive "dist/GModCEFCodecFix" "GModCEFCodecFix.zip" + - name: Get Latest Release Info id: latest-release uses: actions/github-script@main diff --git a/pyinstaller_windows.txt b/pyinstaller_windows.txt index fca1cd4..f57395d 100644 --- a/pyinstaller_windows.txt +++ b/pyinstaller_windows.txt @@ -1 +1 @@ -pyinstaller --add-data "LICENSE.txt;." --add-data "README.md;." --onedir GModCEFCodecFix.py --icon=GModPatchToolLogo.ico; Compress-Archive "dist/GModCEFCodecFix" "GModCEFCodecFix.zip" +pyinstaller --add-data "LICENSE.txt;." --add-data "README.md;." --onedir GModCEFCodecFix.py --icon=GModPatchToolLogo.ico