45 lines
950 B
Markdown
45 lines
950 B
Markdown
# OTA 热更新目录
|
||
|
||
## 文件说明
|
||
|
||
| 文件 | 用途 |
|
||
|------|------|
|
||
| `version.txt` | v5 嵌入式初始化——格式: `版本\|URL\|SHA256` |
|
||
| `h5-manifest-stable.json` | 发行渠道(stable)——格式: `{latest, min_version, url, sha256}` |
|
||
| `h5-manifest-beta.json` | 测试渠道(beta) |
|
||
| `h5-manifest-nightly.json` | 开发渠道(nightly) |
|
||
| `h5/index-vN.html` | 可下载的热更新页面 |
|
||
|
||
## 推送补丁
|
||
|
||
```bash
|
||
# 更新所有渠道到 v7
|
||
cd ota
|
||
bash push-hotfix.sh 7 all
|
||
|
||
# 只更新 nightly 渠道
|
||
bash push-hotfix.sh 7 nightly
|
||
|
||
# 手动推送
|
||
git add ota/
|
||
git commit -m "hotfix: v7"
|
||
git push
|
||
```
|
||
|
||
## 格式
|
||
|
||
**h5-manifest-*.json:**
|
||
```json
|
||
{
|
||
"latest": "0.1.0-dav-android-6",
|
||
"min_version": "0.1.0-dav-android-5",
|
||
"url": "https://git.childish-ghost.com/.../ota/h5/index-v6.html",
|
||
"sha256": "33a16632..."
|
||
}
|
||
```
|
||
|
||
**version.txt:**
|
||
```
|
||
0.1.0-dav-android-6|https://.../ota/h5/index-v6.html|33a16632...
|
||
```
|