Skip to content

Commit 2d184d9

Browse files
authored
fix(release): bump tauri.conf.json version + sync into cut-release skill (#92)
1 parent b76c8d5 commit 2d184d9

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

.claude/skills/cut-release/references/project-shape.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,21 @@ codebase, this file points at the source of truth rather than repeating it.
1515

1616
## Version-bearing files (skill-specific rule)
1717

18-
Three files must agree on the next-version string. Nothing in the codebase enforces this
18+
Four files must agree on the next-version string. Nothing in the codebase enforces this
1919
sync — the skill does.
2020

21-
| File | Owns | Bumps with |
22-
| ---------------------- | -------------------------------- | ------------------------------------------ |
23-
| `package.json` (root) | Node/TS workspace + binary entry | the Rust crate (lockstep) |
24-
| `src-tauri/Cargo.toml` | Rust crate version | root `package.json` (lockstep) |
25-
| `tui/package.json` | Terminal UI subpackage | independently; bumps when TUI code changes |
26-
27-
Root + Cargo move together because the desktop binary the user installs is built from
28-
both. `tui/package.json` tracks separately because it's shipped as its own npm package.
21+
| File | Owns | Bumps with |
22+
| --------------------------- | ------------------------------------ | ------------------------------------------ |
23+
| `package.json` (root) | Node/TS workspace + binary entry | the Rust crate (lockstep) |
24+
| `src-tauri/Cargo.toml` | Rust crate version | root `package.json` (lockstep) |
25+
| `src-tauri/tauri.conf.json` | Tauri bundle filenames + app version | the Rust crate (lockstep) |
26+
| `tui/package.json` | Terminal UI subpackage | independently; bumps when TUI code changes |
27+
28+
Root + Cargo + `tauri.conf.json` move together because the desktop binary the user installs
29+
is built from all three — `tauri.conf.json`'s `version` field is what `tauri-action`
30+
templates into the released artifact filenames (`Claude.Code.Trace_<version>_*.dmg`, etc.).
31+
Missing this file silently ships a release whose artifacts are stamped with the previous
32+
version. `tui/package.json` tracks separately because it's shipped as its own npm package.
2933

3034
## Lockfile regen after a version bump
3135

.claude/skills/cut-release/steps/phase3-bump-versions.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,26 @@ lockfiles.
66
Refer to `${CLAUDE_SKILL_DIR}/references/project-shape.md` for the rules on which files
77
move in lockstep and which move independently.
88

9-
## Step 3.1 — Bump root + Cargo (always lockstep)
9+
## Step 3.1 — Bump root + Cargo + Tauri config (always lockstep)
1010

1111
```bash
1212
# Root package.json
1313
# Edit: "version": "<old>" → "version": "<NEXT_VERSION>"
1414

1515
# src-tauri/Cargo.toml
1616
# Edit: version = "<old>" → version = "<NEXT_VERSION>"
17+
18+
# src-tauri/tauri.conf.json
19+
# Edit: "version": "<old>" → "version": "<NEXT_VERSION>"
1720
```
1821

1922
Use the Edit tool with `old_string`/`new_string` rather than sed — safer for surrounding
2023
context.
2124

25+
`tauri.conf.json` is the field `tauri-action` reads when stamping artifact filenames at
26+
build time (`Claude.Code.Trace_<version>_*.dmg`, etc.). Skipping it produces a release
27+
whose artifacts are still named with the previous version — the symptom seen on v0.5.1.
28+
2229
## Step 3.2 — Bump TUI version
2330

2431
If the chosen subset contains any commit that modifies files under `tui/`, bump

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"productName": "Claude Code Trace",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"identifier": "com.claudecodetrace.app",
55
"build": {
66
"devUrl": "http://localhost:1420",

0 commit comments

Comments
 (0)