fix(ci): repair Windows native checks

This commit is contained in:
edde746
2026-07-25 00:22:23 +02:00
parent c7b9eec087
commit b7d5922b0a
2 changed files with 10 additions and 13 deletions
+2 -2
View File
@@ -505,8 +505,8 @@ jobs:
if ($LASTEXITCODE -ne 0) {
throw "Unable to resolve the Flutter SDK version"
}
$versionJson = $versionOutput | Where-Object { $_ -match '^\s*\{' } | Select-Object -Last 1
if (-not $versionJson) {
$versionJson = $versionOutput -join "`n"
if ([string]::IsNullOrWhiteSpace($versionJson)) {
throw "Flutter did not report machine-readable version JSON"
}
$version = $versionJson | ConvertFrom-Json