Windows 上的安卓应用运行器:双击 APK 即装,应用以独立窗口与桌面图标运行,自持 QEMU 运行时
# Compile-check the C# embedded in agent.ps1 without starting the agent.
$path = Join-Path $PSScriptRoot '..\src\core\win\agent.ps1'
$text = Get-Content $path -Raw
$m = [regex]::Match($text, "(?s)@'\r?\n(.*?)\r?\n'@")
if (-not $m.Success) { Write-Output 'ERR=no-source'; exit 1 }
$src = $m.Groups[1].Value
try {
Add-Type -TypeDefinition $src
Write-Output 'COMPILE_OK'
} catch {
$e = $_.Exception
Write-Output ('COMPILE_FAIL: ' + $e.Message)
if ($e.InnerException) { Write-Output ('INNER: ' + $e.InnerException.Message) }
}