feat: add Flutter USB mirroring and single-instance desktop clients
This commit is contained in:
1 parent
3a7bb071f0
commit
a339465392
30 files changed
+1688
-104
No files matched your search
@@ -3,12 +3,12 @@ $projectRoot = Split-Path $PSScriptRoot -Parent
|
||||
$output = Join-Path $projectRoot 'bin/flutter-win-x64'
|
||||
Push-Location (Join-Path $projectRoot 'flutter_manager')
|
||||
try {
|
||||
flutter build windows --release
|
||||
flutter build windows --release -t lib/main.dart
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Flutter publish failed' }
|
||||
} finally { Pop-Location }
|
||||
New-Item -ItemType Directory -Force -Path $output | Out-Null
|
||||
Copy-Item -Path (Join-Path $projectRoot 'flutter_manager/build/windows/x64/runner/Release/*') -Destination $output -Recurse -Force
|
||||
foreach ($name in @('ads-client','ads-agent','adsctl')) {
|
||||
foreach ($name in @('ads-client','ads-agent','adsctl','ads-usb')) {
|
||||
$tool = Join-Path $projectRoot "bin/$name.exe"
|
||||
if (-not (Test-Path -LiteralPath $tool)) { throw "先运行 scripts/build.ps1:缺少 $name" }
|
||||
Copy-Item -LiteralPath $tool -Destination $output -Force
|
||||
@@ -16,5 +16,6 @@ foreach ($name in @('ads-client','ads-agent','adsctl')) {
|
||||
$tools = Join-Path $output 'tools/scrcpy'
|
||||
New-Item -ItemType Directory -Force -Path $tools | Out-Null
|
||||
Copy-Item -Path (Join-Path $projectRoot 'bin/tools/scrcpy/*') -Destination $tools -Recurse -Force
|
||||
& (Join-Path $PSScriptRoot 'copy-windows-usb-driver.ps1') -Destination $output
|
||||
# Private credentials are deliberately excluded from distributable artifacts.
|
||||
Write-Host "Flutter published to $output (credentials excluded)"
|
||||
Reference in new issue
Block a user