Skip to content

Commit

Permalink
Merge pull request #341 from Z-fly/patch-3
Browse files Browse the repository at this point in the history
优化Windows打包大小
  • Loading branch information
tonquer authored Nov 19, 2024
2 parents d6a5625 + b1ac294 commit e29eaa0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down Expand Up @@ -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\
Expand Down Expand Up @@ -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\
Expand Down Expand Up @@ -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\
Expand Down

0 comments on commit e29eaa0

Please sign in to comment.