From 24d26a7ff3c95fafc56fad6a1628663af8314fa1 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 3 May 2026 00:55:23 +1000 Subject: [PATCH] ci: generate src/ui/inline.rs via inline-sciter.py + drop --no-default-features (need use_dasp) --- .gitea/workflows/build.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 5444ac31e..63d33dbaa 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -90,10 +90,32 @@ jobs: if ($LASTEXITCODE -ne 0) { throw "vcpkg install failed (exit $LASTEXITCODE)" } } finally { Pop-Location } + - name: Generate src/ui/inline.rs (Sciter UI assets) + shell: powershell + run: | + # Sciter UI build embeds HTML/CSS/TIS assets at compile time + # via a generated src/ui/inline.rs. Upstream rustdesk runs + # res/inline-sciter.py during CI; we mirror that here. + $py = 'C:\Users\Yowie\miniconda3\python.exe' + if (-not (Test-Path $py)) { + $py = (Get-Command python.exe -ErrorAction SilentlyContinue).Source + } + if (-not $py) { throw "no python.exe found on runner" } + Write-Output "using python: $py" + & $py res/inline-sciter.py + if ($LASTEXITCODE -ne 0) { throw "inline-sciter.py failed (exit $LASTEXITCODE)" } + if (-not (Test-Path 'src/ui/inline.rs')) { throw "inline.rs not generated" } + Write-Output "inline.rs: $((Get-Item 'src/ui/inline.rs').Length) bytes" + - name: cargo build --release (Sciter UI) shell: powershell run: | - & "$env:CARGO_BIN\cargo.exe" build --release --no-default-features --features inline + # Use --features inline (NOT --no-default-features) -- the + # default feature set includes use_dasp which is required by + # src/server/audio_service.rs (audio_resample). Run #12 + # caught: --no-default-features stripped use_dasp causing + # compile errors E0433/E0425. + & "$env:CARGO_BIN\cargo.exe" build --release --features inline - name: Verify binary + patch marker shell: powershell