feat: build and smoke test native Windows ARM64 packages

This commit is contained in:
Kevin Yue committed 2026-11-18 13:56:10 +08:00
1 parent ccd5850a70
commit 225b57eeb4
8 files changed
+50 -12

No files matched your search

+7
View File
@@ -28,6 +28,13 @@ foreach ($name in @('gpgui.exe', 'gpauth.exe')) {
$process = Start-Process (Join-Path $destination $name) -ArgumentList '--version' -PassThru -Wait
if ($process.ExitCode -ne 0) { throw "The installed $name cannot start." }
}
$helper = Join-Path $destination 'gp-posture.exe'
$output = Join-Path $env:TEMP 'gp-posture-install-test.json'
$process = Start-Process $helper -PassThru -Wait -RedirectStandardOutput $output
if ($process.ExitCode -ne 0) { throw 'The installed posture helper failed.' }
$report = Get-Content $output -Raw | ConvertFrom-Json
if ($null -eq $report.anti_malware -or $null -eq $report.firewall) { throw 'Invalid posture helper output.' }
Remove-Item $output
$state = Join-Path $env:LOCALAPPDATA 'GP Connect\config\protected-state'
New-Item -ItemType Directory -Force $state | Out-Null
$marker = Join-Path $state 'ci-install-retention'