Skip to content

Commit 0cd539c

Browse files
MarkShawn2020claude
andcommitted
chore: release v0.41.2
同步 tauri.conf.json 版本号,避免打包产物停留在旧版本。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent e70b947 commit 0cd539c

7 files changed

Lines changed: 28 additions & 11 deletions

File tree

.changeset/quiet-index-badge.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.41.2
4+
5+
### Patch Changes
6+
7+
- 顶栏标题旁新增版本号标识,悬停可查看完整版本信息;同时移除档案页重复的头部图标,让导航区视觉更克制。
8+
- 99717f5: 索引状态在增量同步时保持稳定:只有全量建立索引会显示百分比、进度条和预计剩余,后续增量同步仅以一个动画图标提示,且该图标在连续同步之间保持常亮不闪。弹窗内的计数改为已发布语料的口径,不再随每轮同步在两个数值间跳动,并支持失焦、点击外部、Esc 自动关闭。
9+
310
## 0.41.1
411

512
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ataru",
33
"private": true,
4-
"version": "0.41.1",
4+
"version": "0.41.2",
55
"type": "module",
66
"packageManager": "pnpm@10.18.1",
77
"scripts": {

scripts/sync-cargo-version.cjs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@ const fs = require('fs');
22
const path = require('path');
33
const root = path.resolve(__dirname, '..');
44
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
5-
let cargo = fs.readFileSync(path.join(root, 'src-tauri/Cargo.toml'), 'utf8');
5+
6+
const cargoPath = path.join(root, 'src-tauri/Cargo.toml');
7+
let cargo = fs.readFileSync(cargoPath, 'utf8');
68
cargo = cargo.replace(/^version = "[^"]+"$/m, `version = "${pkg.version}"`);
7-
fs.writeFileSync(path.join(root, 'src-tauri/Cargo.toml'), cargo);
9+
fs.writeFileSync(cargoPath, cargo);
810
console.log(`✓ Cargo.toml → ${pkg.version}`);
11+
12+
// tauri.conf.json 的 version 字段优先于 Cargo.toml,必须一并同步,
13+
// 否则打包产物与 updater manifest 会停留在旧版本号。
14+
const confPath = path.join(root, 'src-tauri/tauri.conf.json');
15+
let conf = fs.readFileSync(confPath, 'utf8');
16+
const before = conf;
17+
conf = conf.replace(/("version"\s*:\s*)"[^"]+"/, `$1"${pkg.version}"`);
18+
if (conf === before) {
19+
console.error('✗ tauri.conf.json: version 字段未找到');
20+
process.exit(1);
21+
}
22+
fs.writeFileSync(confPath, conf);
23+
console.log(`✓ tauri.conf.json → ${pkg.version}`);

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ataru"
3-
version = "0.41.1"
3+
version = "0.41.2"
44
description = "A Tauri App"
55
authors = ["you"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Ataru",
4-
"version": "0.41.1",
4+
"version": "0.41.2",
55
"identifier": "app.lovpen.code",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

0 commit comments

Comments
 (0)