docs: gen-manifest.sh构建号规则说明

This commit is contained in:
LukeMackin
2026-07-19 23:23:23 +08:00
parent eeea966400
commit a2f204f5ee

View File

@@ -1,7 +1,8 @@
#!/bin/bash
# OTA manifest 生成脚本
# CI 构建时运行: ./ota/gen-manifest.sh <versionName> <versionCode> <apk-path>
# 生成 manifest-stable.json 后通过 Gitea API 上传到 Release
# 用法: ./ota/gen-manifest.sh <versionName> <versionCode> <apk-path>
# 构建号规则: 每次生成APK时 versionCode +1, 对应 git tag vX.Y.Z-dav-android-N
# CI 构建时自动运行, SHA256动态填入, 生成 manifest-stable.json 后上传到 Gitea Release
VERSION_NAME="${1:-0.1.0}"
VERSION_CODE="${2:-7}"