's'
This commit is contained in:
20
FullDeploy.ps1
Normal file
20
FullDeploy.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
# 一键部署。密码: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
|
||||
Reference in New Issue
Block a user