fix(ci): install dotnet without admin access and preserve public release links
Gitea CI / Check code and tests (pull_request) Successful in 6m21s
Gitea CI / Build Android APK (pull_request) Successful in 4m1s
Gitea CI / Build Windows x64 app (pull_request) Successful in 10m7s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 1m54s
Gitea CI / Gitea CI passed (pull_request) Successful in 2s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 1m58s

This commit is contained in:
lingjhf committed 2026-10-06 15:07:28 +08:00
1 parent 8e523f0e89
commit 44cb452350
4 files changed
+22 -3

No files matched your search

+3
View File
@@ -28,6 +28,9 @@ the runner user's `%LOCALAPPDATA%/Cutdex/ci-tools/`. Later builds reuse them aft
version checks. Python interpreter identity and tool versions isolate the cache,
and a mutex protects installation across concurrent workflows. .NET setup remains
in the Windows packaging job to provide SDK 10 and the runtime required by `vpk`.
The .NET installation uses the runner user's `Cutdex/ci-tools/dotnet` directory
through `DOTNET_INSTALL_DIR` and `DOTNET_ROOT`, so setup needs no administrator
access and later jobs reuse the installed SDK and runtime.
The Windows build verifies that the resolved deskup native SDK matches the pinned
Velopack version before saving the app. Packaging imports no Flutter package
configuration and independently verifies the installed vpk version.
+6
View File
@@ -148,6 +148,12 @@ jobs:
with:
name: cutdex-windows-app
path: build/windows/x64/production/runner/Release/
- name: Configure user .NET installation
run: |
$directory = Join-Path $env:LOCALAPPDATA 'Cutdex/ci-tools/dotnet'
[IO.Directory]::CreateDirectory($directory) | Out-Null
"DOTNET_INSTALL_DIR=$directory" | Out-File -LiteralPath $env:GITHUB_ENV -Encoding utf8 -Append
"DOTNET_ROOT=$directory" | Out-File -LiteralPath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Set up .NET SDK
uses: https://github.com/actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1
with: