waybetter-for-x/apps/desktop/scripts/close-check.ps1
2026-10-01 06:01:13 +07:00

13 lines
828 B
PowerShell

# Graceful-close regression check (Windows): the app must exit on a plain `taskkill /PID` in every
# window state and on a simulated sign-out. The check is the framework's
# (waybetter/dev-tools/close-check.ps1); this runs it on wayBetter for X's release build.
#
# powershell -ExecutionPolicy Bypass -File scripts/close-check.ps1 [-Exe <path>] [-Cases normal,minimized,...]
param(
[string]$Exe = (Join-Path $PSScriptRoot '..\src-tauri\target\release\better-twttr.exe'),
[string[]]$Cases = @('normal', 'minimized', 'maximized', 'unfocused', 'debugport', 'endsession'),
[int]$StartupSeconds = 10,
[int]$ExitSeconds = 10
)
& (Join-Path $PSScriptRoot '..\..\..\waybetter\dev-tools\close-check.ps1') -Exe $Exe -Cases $Cases -StartupSeconds $StartupSeconds -ExitSeconds $ExitSeconds
exit $LASTEXITCODE