iboard/ota-package/README.md
cheney add3ff8831
All checks were successful
Docker Build and Push / build-image (push) Successful in 6m37s
修改 ota cicd
2026-08-07 17:10:07 +08:00

9 lines
650 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ota-package/ 目录占位文件
本目录是 OTA 升级包输出目录git 忽略):
- **CIdocker-build.yml**:每次主分支提交运行 `scripts/build-ota.mjs` 生成 `iboard-ota.tar.gz` + `latest.json` + `*.minisig`,随 Docker 镜像发布到容器内 `OTA_PACKAGE_DIR=/app/ota-package`
- **本地手动构建**只有本占位文件Dockerfile 的 `COPY ota-package ./ota-package` 不会失败;容器内 `readLatest()` 找不到 `latest.json` 时 OTA 检查返回"无更新包"。
本文件保留在 git 中是为了让 `COPY` 在本地构建时不报错;真实 OTA 产物(含私钥 hotswap.key永不提交。