From a46901ef5d62e455f5f9e5820a1482768df2ae03 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 21 May 2026 13:10:07 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3"=E6=A0=B9=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=9C=89=20launcher=20=E8=BD=AC=E5=8F=91"=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=AF=B4=E6=98=8E=20+=20=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=94=B9=E4=B8=BA=20bin/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实际情况:根目录已不再保留 run_cli.py / gui_app.py / webgui_launcher.py / manage_logs.py 的 launcher 转发,这些入口脚本统一在 bin/ 下,必须以 'python bin/run_cli.py ...' 形式调用。 之前的提交里我把"路径迁移说明"写成"入口仍可从仓库根直接运行"是错的, 本提交修正: - README.md - 项目架构段末尾的"历史小贴士"改为完整的迁移表,明确入口在 bin/ 下 - 5 处 'python run_cli.py' / 'python gui_app.py' / 'python webgui_launcher.py' 全部改为 'python bin/...' 形式(分别在快速开始、命令行用法、Web GUI 启动、 Issue 模板、测试模式段) - docs/完整技术文档.md - 头部"路径迁移说明"末尾的"仍可从仓库根直接运行"改为"必须用 bin/ 前缀" 文档里其他正文中的 'python run_cli.py …' 命令属于历史正文,迁移说明已在文档头部 统一指引读者改读为 bin/ 前缀,不再逐句修订(避免改动 7000+ 行文档主体)。 Co-Authored-By: Claude Opus 4.7 --- README.md | 27 ++++++++++++++++++--------- docs/完整技术文档.md | 2 +- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0f5f09f..faab086 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ Issue 模板参考: - 设备型号:例如 Mi 10 复现步骤: -1. 启动脚本:`python run_cli.py --...` +1. 启动脚本:`python bin/run_cli.py --...` 2. 执行到 XX 步骤 3. 观察到异常 @@ -457,7 +457,7 @@ adb devices 1. **启动 GUI** ```bash - python gui_app.py + python bin/gui_app.py ``` 2. **配置参数** @@ -479,10 +479,10 @@ adb devices ```bash # 基本用法 -python run_cli.py --needswitch --wait-minutes 5 +python bin/run_cli.py --needswitch --wait-minutes 5 # 完整参数示例 -python run_cli.py \ +python bin/run_cli.py \ --device-id MB75DEFQZHZTGMLJ \ --y-pianyi 0 \ --needswitch \ @@ -509,7 +509,7 @@ python run_cli.py \ 一键启动WebGUI.bat # 方式2:命令行运行 - python webgui_launcher.py + python bin/webgui_launcher.py ``` 2. **访问界面** @@ -961,9 +961,18 @@ python run_cli.py \ └── state/ # 运行时状态文件(gitignored) ``` -> 历史小贴士:旧文档可能仍提及根目录的 `Underlying_Operations.py` / `path_config.py` / `run_cli.py`。 -> 这三个文件已分别迁移到 `douyin/core/underlying_operations.py`、`douyin/core/path_config.py`、`bin/run_cli.py`, -> 入口脚本仍可从仓库根直接运行(保留 launcher 转发)。 +> 历史小贴士:旧文档可能仍提及根目录的 `Underlying_Operations.py` / `path_config.py` / `run_cli.py` / +> `gui_app.py` / `webgui_launcher.py` / `manage_logs.py`。这些文件已分别迁移到: +> +> | 旧位置(根目录) | 新位置 | +> |---|---| +> | `Underlying_Operations.py` | `douyin/core/underlying_operations.py` | +> | `path_config.py` | `douyin/core/path_config.py` | +> | `unified_logger.py` | `douyin/logging/unified_logger.py` | +> | `version.py` | `douyin/core/version.py` | +> | `run_cli.py` / `gui_app.py` / `webgui_launcher.py` / `manage_logs.py` | `bin/<同名>` | +> +> 入口脚本现在统一在 `bin/` 下,命令应写为 `python bin/run_cli.py …`、`python bin/gui_app.py` 等。 ### 核心模块说明 @@ -1338,7 +1347,7 @@ python run_cli.py \ 4. **使用测试模式** ```bash - python run_cli.py --test-yanghao-flow + python bin/run_cli.py --test-yanghao-flow ``` ### 提交代码 diff --git a/docs/完整技术文档.md b/docs/完整技术文档.md index e8f04df..a4f2603 100644 --- a/docs/完整技术文档.md +++ b/docs/完整技术文档.md @@ -23,7 +23,7 @@ > | `from Underlying_Operations import …` | `from douyin.core.underlying_operations import …` | > | `from path_config import …` | `from douyin.core.path_config import …` | > -> 入口脚本(`bin/run_cli.py`、`bin/gui_app.py` 等)仍可从仓库根直接 `python .py` 运行——根目录保留了 launcher 转发。文档里 `python run_cli.py …` 的示例命令依旧可用。 +> 入口脚本现在统一放在 `bin/` 下,根目录已不再保留 launcher 转发。文档里所有 `python run_cli.py …` 示例命令请改读为 `python bin/run_cli.py …`,其他入口同理。 -- 变更记录 - 2026-01-18: V4.5 — 修复预约更新后的循环问题,添加强制切换标志防止在同一直播间反复检测。