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

7 lines
531 B
PowerShell

# Resizes the app window for ~2 s, then puts it back: the window-resize workload for
# scripts/resize-perf.mjs `window`. The tool is the framework's (waybetter/dev-tools/window-resize.ps1);
# this runs it on wayBetter for X's process.
# powershell -ExecutionPolicy Bypass -File scripts/window-resize.ps1 [-Ms 2000] [-Amplitude 200]
param([int]$Ms = 2000, [int]$Amplitude = 200)
& (Join-Path $PSScriptRoot '..\..\..\waybetter\dev-tools\window-resize.ps1') -Process 'better-twttr*' -Ms $Ms -Amplitude $Amplitude
exit $LASTEXITCODE