ci: generate src/ui/inline.rs via inline-sciter.py + drop --no-default-features (need use_dasp)
Build patched rustdesk.exe / Build Win x64 (Sciter UI) (push) Failing after 9m14s
Build patched rustdesk.exe / Build Win x64 (Sciter UI) (push) Failing after 9m14s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user