build: prepare Flutter management center for agent integration
This commit is contained in:
1 parent
05d4d5fea6
commit
e91fa0235c
34 files changed
+3481
No files matched your search
@@ -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 }
|
||||
Reference in new issue
Block a user