fix(ci): 版本校验在浅克隆下必然误报
构建客户端 / 检查(类型 + 单元测试) (push) Waiting to run
构建客户端 / Linux x64(deb + AppImage) (push) Blocked by required conditions
构建客户端 / Windows x64(NSIS 安装包) (push) Blocked by required conditions
构建客户端 / macOS 通用(.app + .dmg) (push) Blocked by required conditions

- fix(ci): checkout 改成 fetch-depth: 0——没有标签、提交数恒为 1 时,
  version.mjs --check 算出来的版本一定是 0.0.0+1,于是每次推送都红
- fix(version): CHANGELOG 按标签区间重算全部历史,不再只渲染当前版本,
  否则每次发布都会把上一版那一段覆盖掉
- fix(build): 固件包文件名用算出来的版本,不再用 BUILD-INFO.json 里那套旧编号
This commit is contained in:
2026-10-19 02:42:53 +08:00
parent 896b21fe44
commit d9a27b69f3
8 changed files with 195 additions and 134 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "rmic-2026",
"private": true,
"version": "0.2.0",
"version": "0.2.1",
"type": "module",
"description": "RMIC::2026 —— ESP32 图传与装甲板系统的桌面端:用户端(装甲条 + 瞄准器)与裁判端(双路 + 装甲板 + 录制)",
"scripts": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "RMIC-2026",
"version": "0.2.0",
"version": "0.2.1",
"identifier": "com.simbarobotics.rmic2026",
"build": {
"beforeDevCommand": "pnpm dev",
+3 -3
View File
@@ -6,12 +6,12 @@
*/
export const BUILD = {
version: "0.2.0",
version: "0.2.1",
major: 0,
minor: 2,
patch: 0,
patch: 1,
/** git 提交数,单调递增。 */
build: 34,
build: 35,
/** 线路协议版本。与固件自报的那个数直接比对。 */
protocol: 1,
/** 生成时的提交日期(`YYYY-MM-DD`)。 */