build: prepare Flutter management center for agent integration

This commit is contained in:
tongtong committed 2026-11-12 19:09:18 +08:00
1 parent 05d4d5fea6
commit e91fa0235c
34 files changed
+3481

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
param([switch]$Build)
$ErrorActionPreference = 'Stop'
Push-Location $PSScriptRoot
try {
if ($Build) {
flutter build windows --release
if ($LASTEXITCODE -ne 0) { throw 'Flutter Windows 构建失败' }
}
$exe = Join-Path $PSScriptRoot 'build/windows/x64/runner/Release/ads_manager.exe'
if (-not (Test-Path -LiteralPath $exe)) { throw '请先运行 .\start-windows.ps1 -Build' }
Start-Process -FilePath $exe -WorkingDirectory $PSScriptRoot
} finally { Pop-Location }