Files

6 lines
314 B
PowerShell

$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path $PSScriptRoot -Parent
$app = Join-Path $projectRoot 'bin/desktop-win-x64/Ads.Desktop.exe'
if (-not (Test-Path -LiteralPath $app)) { throw '先运行 scripts/build-desktop.ps1' }
Start-Process -FilePath $app -ArgumentList '--agent-tray' -WindowStyle Hidden