1.7.0:常规发布

- 版本号 1.7.0 -> 1.7.0
- 重建三端并打包
- 关键测试全过
This commit is contained in:
xmz7891
2026-10-06 22:49:14 +08:00
parent 0a4ec4f0c4
commit b86eeb349b
32 changed files with 2476 additions and 61 deletions
+14 -5
View File
@@ -105,13 +105,22 @@ def main() -> int:
print((proc.stderr or "")[-600:])
return 1
# ---- 3. 打包 ----
step(3, "打三个成品")
# ---- 3. 打成品 ----
step(3, "打成品(安装包 + 服务器 zip + APK)")
proc = sh([sys.executable, "_build/package_remote.py"])
print(proc.stdout[-1400:])
print(proc.stdout[-1200:])
if proc.returncode != 0:
return 1
# 电脑端对外发的是**安装包**,不是 zip
proc = sh([sys.executable, "installer/build_installer.py"], timeout=1800)
for line in (proc.stdout or "").splitlines():
if "安装包" in line or "失败" in line:
print(f" {line.strip()}")
if proc.returncode != 0:
print((proc.stdout or "")[-1200:])
return 1
# ---- 4. 关键测试 ----
step(4, "跑关键测试")
for test in ("audit_encoding.py", "test_net_tune.py", "test_chunked_body.py",
@@ -128,7 +137,7 @@ def main() -> int:
# 打包测试要起真的中转 + agent,前面刚跑过几个测试,
# 偶尔会撞上端口/隧道还没恢复 —— 重试一次就好
ok_pkg = False
for attempt in range(2):
for attempt in range(3):
proc = sh([sys.executable, "-u", "_tests/test_package_remote.py"],
timeout=1800)
out = proc.stdout or ""
@@ -147,7 +156,7 @@ def main() -> int:
"$_.CommandLine -match 'relay.py' } | "
"ForEach-Object { Stop-Process -Id $_.ProcessId -Force "
"-ErrorAction SilentlyContinue }"], timeout=120)
time.sleep(4)
time.sleep(8)
if not ok_pkg:
return 1