Files
photoreport/infra/desktop/windows-webview2.ps1
T
spark e6b5f2e390
ci / rust (pull_request) Successful in 11m45s
ci / typescript (pull_request) Failing after 14m55s
Let a Windows release, a Linux or Windows cable, and a future Developer ID join the desktop build.
The installer job was waiting on a commented matrix row, USB stayed on Image Capture, face detection could not read the Windows CPU, and notarisation had nowhere to put an Apple account.
2026-11-26 15:09:36 +00:00

11 lines
559 B
PowerShell

# WebView2 is the window engine of the Windows installer. Windows 11 already has it.
# A desktop-v tag on a Windows runner installs the evergreen runtime when this key is missing.
$ErrorActionPreference = "Stop"
$key = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}"
if (Test-Path $key) {
exit 0
}
$dest = Join-Path $env:TEMP "webview2-bootstrapper.exe"
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile $dest
Start-Process $dest -ArgumentList "/silent", "/install" -Wait