mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-12 03:00:09 +08:00
桌面端构建产物(.dmg/.msi 文件名 + app 内部版本)一直是 2.0.0: Tauri 取 tauri.conf.json 的静态 version 字段作为产物版本,而 Release 工作流只把 tag 名用作 Release 标题,没同步到 conf → 产物版本与 Release 版本错位。 在 pnpm tauri build 前新增 Sync version 步骤,从 github.ref_name(形如 v2.3.2,去掉前缀 v)注入版本到 tauri.conf.json。以后每次 tag 发版自动 对齐;workflow_dispatch 手动构建无 tag 时跳过,保留静态值不破坏。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>