refactor(windows): publish Velopack updates through Gitea Releases

This commit is contained in:
lingjhf committed 2026-10-06 12:56:31 +08:00
1 parent 826745b407
commit 1ef8edc8bc
17 files changed
+519 -87

No files matched your search

+15 -1
View File
@@ -38,6 +38,12 @@ jobs:
- run: flutter pub get --enforce-lockfile
- run: dart analyze --fatal-infos
- run: flutter test --reporter expanded test packages/cutdex_ui/test packages/cutdex_native/test
- name: Validate update and release tooling
run: |
python -m unittest discover -s tool/gitea -p 'test_*.py'
if ($LASTEXITCODE -ne 0) { throw 'Release tooling tests failed.' }
python -m unittest discover -s tool/windows -p '*_unit.py'
if ($LASTEXITCODE -ne 0) { throw 'Update tooling tests failed.' }
- name: Bound Android build memory on the shared runner
run: |
$file = 'android/gradle.properties'
@@ -55,9 +61,17 @@ jobs:
if ($LASTEXITCODE -ne 0) { throw 'Packaging environment setup failed.' }
& ./.build/package-tools/Scripts/python.exe -m pip install pefile==2024.8.26
if ($LASTEXITCODE -ne 0) { throw 'Packaging dependency installation failed.' }
- uses: https://github.com/actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1
with:
dotnet-version: '10.0.x'
- name: Install pinned Velopack release tool
run: |
dotnet tool install vpk --version 1.2.161 --tool-path .build/vpk
if ($LASTEXITCODE -ne 0) { throw 'Velopack tool installation failed.' }
- name: Package application
run: |
& ./.build/package-tools/Scripts/python.exe tool/gitea/package-app.py
& ./.build/package-tools/Scripts/python.exe tool/gitea/package-app.py --vpk .build/vpk/vpk.exe
if ($LASTEXITCODE -ne 0) { throw 'Application packaging failed.' }
- name: Upload Android and Windows packages
uses: https://github.com/actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with: