Commit f2b1da7
committed
fix(build): CI 拉子模块 + 跑 configure.py 拷 OCR 模型到 resource
打包缺 OCR 模型(det.onnx/keys.txt/rec.onnx)。根因:CI checkout 默认不拉
submodule(MaaCommonAssets),也没跑 tools/configure.py,导致 resource/base/
model/ocr 为空,打包进包的 resource 缺 OCR。
release.yml + package-check.yml:
- checkout 加 submodules: true(拉 MaaCommonAssets)
- Build 前加 uv run python tools/configure.py(从子模块拷 OCR 到 resource)
OCR 模型本身 gitignore 不入库,靠子模块+configure 生成,Stage 步骤的
cp -r resource 会连带拷到 dist。1 parent a42cb15 commit f2b1da7
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
0 commit comments