Fix : windows verify crash 1
Some checks failed
release / build (push) Successful in 24s
release / verify-windows (push) Failing after 1m3s

This commit is contained in:
jeanotx32
2026-08-11 17:25:28 +02:00
parent dc63c2b39d
commit 6f6e829ad5
3 changed files with 18 additions and 6 deletions

View File

@@ -114,7 +114,10 @@ if ($isUpgrade) {
name = $Name
obs = [ordered]@{ host = $ObsHost; port = $ObsPort; password = $ObsPassword }
}
$config | ConvertTo-Json -Depth 5 | Set-Content -Path $configFile -Encoding UTF8
# Surtout pas Set-Content -Encoding UTF8 : sous PowerShell 5.1 il préfixe un
# BOM, et JSON.parse côté Node refuse le fichier.
$json = $config | ConvertTo-Json -Depth 5
[System.IO.File]::WriteAllText($configFile, $json, (New-Object System.Text.UTF8Encoding($false)))
Info "Configuration écrite dans $configFile"
}