fix: gen-manifest.sh curl路径+注释+README全部同步manifest-stable.json
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
# OTA 文件夹
|
||||
|
||||
此目录存放 manifest 生成脚本。manifest.json 是 CI 构建时动态生成的产物,
|
||||
上传到 Gitea Release Assets,**不提交到仓库**。
|
||||
此目录存放 manifest 文件。manifest-stable.json 是 CI 构建时动态生成的产物,
|
||||
也提交到仓库通过 raw URL 供客户端拉取。
|
||||
|
||||
## 文件
|
||||
|
||||
- `gen-manifest.sh` — 构建后运行,计算 APK SHA256 并生成 manifest.json
|
||||
- `gen-manifest.sh` — 构建后运行,计算 APK SHA256 并生成 manifest-stable.json
|
||||
- `manifest-stable.json` — stable 渠道
|
||||
- `manifest-beta.json` — beta 渠道
|
||||
- `manifest-nightly.json` — nightly 渠道
|
||||
|
||||
## 流程
|
||||
|
||||
```
|
||||
CI 构建 APK → ./ota/gen-manifest.sh → curl 上传 manifest.json 到 Release
|
||||
CI 构建 APK → ./ota/gen-manifest.sh → git push manifest-stable.json
|
||||
手机 App → raw URL 拉取 manifest → 比较版本 → 下载 APK → SHA256 校验
|
||||
```
|
||||
|
||||
@@ -34,4 +34,4 @@ echo " tag: ${RELEASE_TAG}"
|
||||
echo " sha256: ${SHA256}"
|
||||
echo " size: ${SIZE}"
|
||||
echo ""
|
||||
echo "Upload: curl -X POST 'https://git.childish-ghost.com/api/v1/repos/LukeMackin/Yuzu-GCA/releases/\${RELEASE_ID}/assets?name=manifest.json' -H 'Authorization: token \$TOKEN' -H 'Content-Type: application/json' --data-binary @ota/manifest.json"
|
||||
echo "Upload: curl -X POST 'https://git.childish-ghost.com/api/v1/repos/LukeMackin/Yuzu-GCA/releases/\${RELEASE_ID}/assets?name=manifest-stable.json' -H 'Authorization: token \$TOKEN' -H 'Content-Type: application/json' --data-binary @ota/manifest-stable.json"
|
||||
|
||||
Reference in New Issue
Block a user