From b1ac294b233c6237ab8e4f3afd66e76fe574ebeb Mon Sep 17 00:00:00 2001 From: Z-fly <10470892+Z-fly@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Windows=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d664be7..ae5adf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -180,11 +180,14 @@ jobs: pip install pyinstaller==4.8 pip install https://github.com/tonquer/waifu2x-vulkan/releases/download/v1.1.6/sr_ncnn_vulkan-1.2.0-cp36.cp37.cp38.cp39.cp310.cp311-none-win_amd64.whl pip install -r src\requirements.txt + Invoke-WebRequest -Uri "https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip" -OutFile "upx.zip" + Expand-Archive -Path "upx.zip" -DestinationPath "D:\" + Remove-Item "upx.zip" - name: Build run: | cd src cp ..\res\icon\icon.ico .\ - pyinstaller -F -w -i icon.ico start.py + pyinstaller -F -w -i icon.ico start.py --upx-dir "D:\upx-4.2.4-win64" mv dist bika Copy-Item -Verbose -Recurse -Path db -Destination bika/ cp ..\LICENSE bika\ @@ -225,11 +228,14 @@ jobs: python -m pip install --upgrade pip pip install pyinstaller==4.8 pip install -r src\requirements.txt + Invoke-WebRequest -Uri "https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip" -OutFile "upx.zip" + Expand-Archive -Path "upx.zip" -DestinationPath "D:\" + Remove-Item "upx.zip" - name: Build run: | cd src cp ..\res\icon\icon.ico .\ - pyinstaller -F -w -i icon.ico start.py + pyinstaller -F -w -i icon.ico start.py --upx-dir "D:\upx-4.2.4-win64" mv dist bika Copy-Item -Verbose -Recurse -Path db -Destination bika/ cp ..\LICENSE bika\ @@ -271,11 +277,14 @@ jobs: pip install pyinstaller==4.6 pip install https://github.com/tonquer/waifu2x-vulkan/releases/download/v1.1.6/sr_ncnn_vulkan-1.2.0-cp36.cp37.cp38.cp39.cp310.cp311-none-win_amd64.whl pip install -r src\requirements_win7.txt + Invoke-WebRequest -Uri "https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip" -OutFile "upx.zip" + Expand-Archive -Path "upx.zip" -DestinationPath "D:\" + Remove-Item "upx.zip" - name: Build run: | cd src cp ..\res\icon\icon.ico .\ - pyinstaller -F -w -i icon.ico start.py + pyinstaller -F -w -i icon.ico start.py --upx-dir "D:\upx-4.2.4-win64" mv dist bika Copy-Item -Verbose -Recurse -Path db -Destination bika/ cp ..\LICENSE bika\ @@ -316,11 +325,14 @@ jobs: python -m pip install --upgrade pip pip install pyinstaller==4.6 pip install -r src\requirements_win7.txt + Invoke-WebRequest -Uri "https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip" -OutFile "upx.zip" + Expand-Archive -Path "upx.zip" -DestinationPath "D:\" + Remove-Item "upx.zip" - name: Build run: | cd src cp ..\res\icon\icon.ico .\ - pyinstaller -F -w -i icon.ico start.py + pyinstaller -F -w -i icon.ico start.py --upx-dir "D:\upx-4.2.4-win64" mv dist bika Copy-Item -Verbose -Recurse -Path db -Destination bika/ cp ..\LICENSE bika\