Files
gitlab-instance-0a899031_lo…/FullDeploy.ps1
2026-04-05 01:00:07 -05:00

21 lines
804 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 一键部署。密码FL_SSH_PASS 或 fl_ssh_pass.txt
# 默认:编译+装包+自动授权。加 -Codex再 jadx 双包/原版 + 运行时截图/dumpsys/内存/logcat/Magisk&LSPosed 路径扫描,并拉回 analysis_pull/
param(
[switch]$Codex
)
$ErrorActionPreference = "Stop"
$Root = $PSScriptRoot
$Secret = Join-Path $Root "fl_ssh_pass.txt"
if (-not $env:FL_SSH_PASS -and (Test-Path -LiteralPath $Secret)) {
$env:FL_SSH_PASS = (Get-Content -LiteralPath $Secret -Raw).Trim()
}
if (-not $env:FL_SSH_PASS) {
throw "请设置环境变量 FL_SSH_PASS或在 $Root 下创建 fl_ssh_pass.txt单行密码"
}
if ($Codex) {
& python (Join-Path $Root "_codex_full_pipeline.py") @args
} else {
& python (Join-Path $Root "_remote_adb_install_test.py") @args
}
exit $LASTEXITCODE