File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 发布清单与忽略规则
2+
3+ 这一章用于发布前检查,避免把本机缓存、下载包、板端镜像和临时调试脚本带进公开仓库。
4+
5+ ## 必须排除
6+
7+ 以下内容不应提交:
8+
9+ - ` .cache/ `
10+ - ` repos/ `
11+ - ` 相关文件下载/ `
12+ - ` openclaw_magicbox_bundle.tar `
13+ - ` tmp_* `
14+ - ` _tmp_*.log `
15+ - ` page_*.html `
16+ - ` openclaw_linux.html `
17+ - ` magicbox_index.html `
18+ - ` .env `
19+
20+ 这些文件大多是下载缓存、第三方仓库、调试脚本或本机运行产物。读者可以按教程重新下载或生成,不需要把它们放进仓库。
21+
22+ ## 建议保留
23+
24+ 以下内容适合保留:
25+
26+ - ` README.md `
27+ - ` README_01_环境准备与刷机.md `
28+ - ` README_02_有线网口连接与登录.md `
29+ - ` README_03_快速入门与基础外设.md `
30+ - ` README_04_算法Demo_双目与手势.md `
31+ - ` README_05_算法Demo_语音与LLM.md `
32+ - ` README_06_OpenClaw部署与接入.md `
33+ - ` README_09_飞书控制入口.md `
34+ - ` README_10_Windows主机OpenClaw语音桥接与家庭物资助手.md `
35+ - ` assets/ `
36+
37+ ## 提交前检查
38+
39+ 在仓库根目录运行:
40+
41+ ``` bash
42+ git status --short
43+ git ls-files | grep -E " openclaw_magicbox_bundle|相关文件下载|\\ .cache/|repos/|tmp_|\\ .env$|page_.*\\ .html"
44+ ```
45+
46+ 第二条命令不应该输出任何内容。如果有输出,先检查 ` .gitignore ` 或从暂存区移除对应文件。
47+
48+ ## 说明方式
49+
50+ 教程正文只需要告诉读者去哪下载、如何校验和如何运行。不要把完整安装包、开发板镜像或第三方仓库打包进本仓库。
You can’t perform that action at this time.
0 commit comments