chore(V0.2): 统一 APK 与 OTA 版本规则 —— 同一版本号, APK 裸写 / OTA 加 -ota
Docker Build and Push / build-image (push) Successful in 10m16s
Docker Build and Push / build-image (push) Successful in 10m16s
- readme: 版本管理章节重写, 明确 APK=0.2.0 无后缀, OTA=0.2.0-ota 多一个标记 并补充 APK versionName/versionCode 的生成链路 (tauri.properties, major*1e6+minor*1e3+patch) - scripts/ci/check-version.mjs: 新增四处一致性校验 (package.json / tauri.conf.json / Cargo.toml / Cargo.lock), 并禁止 version 带 -ota - android-build.yml: 构建前也执行版本校验 (tauri.conf.json 的 version 就是 APK versionName) - 需求文档 F-OT-01a、设计文档 §10.2 同步该规则
This commit is contained in:
@@ -30,6 +30,11 @@ jobs:
|
||||
node-version: 22
|
||||
cache: 'npm'
|
||||
|
||||
# 版本号一致性: package.json / tauri.conf.json / Cargo.toml / Cargo.lock 必须完全相等。
|
||||
# tauri.conf.json 的 version 就是 APK 的 versionName, 漏改会打出一个版本号错误的安装包。
|
||||
- name: Check version consistency
|
||||
run: node scripts/ci/check-version.mjs
|
||||
|
||||
- name: Setup JDK 17
|
||||
uses: https://gitea.com/actions/setup-java@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user