's'
This commit is contained in:
@@ -53,7 +53,12 @@ FILES = [
|
||||
"web-console/middleware.ts",
|
||||
"web-console/components/OverviewCharts.tsx",
|
||||
"web-console/components/live-product/LiveControlApp.tsx",
|
||||
"web-console/components/live-product/LiveAndroidWorkstation.tsx",
|
||||
"web-console/components/live-product/LiveYoutubeUnmannedView.tsx",
|
||||
"web-console/components/live-product/LiveTiktokHdmiView.tsx",
|
||||
"web-console/lib/panelUrls.ts",
|
||||
"web-console/lib/youtubeProChannels.ts",
|
||||
"web-console/lib/youtubeConfigUtils.ts",
|
||||
"web-console/components/console/LiveConsoleWorkspace.tsx",
|
||||
]
|
||||
|
||||
@@ -224,12 +229,18 @@ def main() -> int:
|
||||
_safe_print("远程 py_compile 失败,见日志")
|
||||
return 3
|
||||
|
||||
_log_append(
|
||||
log_path,
|
||||
"\n[提示] web_console_build 在远端执行 npm + next build,ARM 上常需 5~20 分钟;"
|
||||
"未完成前日志不会出现 exit=,属正常现象。\n",
|
||||
)
|
||||
_safe_print("远端正在构建 web-console(请耐心等待,ARM 可能较久)…")
|
||||
build_cmd = (
|
||||
f"cd {REMOTE_BASE}/web-console && "
|
||||
"(npm ci 2>/dev/null || npm install) && "
|
||||
"(command -v pnpm >/dev/null 2>&1 && pnpm run build || npm run build)"
|
||||
)
|
||||
code_b, _ = run_logged(client, log_path, "web_console_build", build_cmd, timeout=900)
|
||||
code_b, _ = run_logged(client, log_path, "web_console_build", build_cmd, timeout=2400)
|
||||
if code_b != 0:
|
||||
_safe_print("[警告] web-console build 非 0(可能未装 Node/pnpm),完整输出见日志")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user