add aria2c dependency to exe binary on windows

This commit is contained in:
2025-10-25 21:52:39 +02:00
parent 20a310264f
commit 1d500305f7
2 changed files with 27 additions and 21 deletions
+8 -1
View File
@@ -90,9 +90,16 @@ jobs:
}'
$json | Out-File -Encoding utf8 build_info.json
- name: Download aria2c (Windows)
if: runner.os == 'Windows'
run: |
mkdir -p deps
wget https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip
unzip -j aria2-1.37.0-win-64bit-build1.zip aria2-1.37.0-win-64bit-build1/aria2c.exe -d deps/
- name: Build executable with PyInstaller (Windows)
if: runner.os == 'Windows'
run: pyinstaller --onefile --windowed --add-data "build_info.json:." --name ${{ env.APP_NAME }} main.py
run: pyinstaller --onefile --windowed --add-data "build_info.json:." --add-data "deps/aria2c.exe" --name ${{ env.APP_NAME }} main.py
- name: Build executable with PyInstaller (Unix)
if: runner.os != 'Windows'