Skip to content

Commit ca419b2

Browse files
MarkShawn2020claude
andcommitted
chore(release): v0.6.1
- Add Cargo.toml version sync script for correct binary versioning - Add `pnpm run version` script for automated release 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0600c8b commit ca419b2

5 files changed

Lines changed: 19 additions & 4 deletions

File tree

CHANGELOG.md

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

3+
## 0.6.1
4+
5+
### Patch Changes
6+
7+
- fix: add Cargo.toml version sync for correct binary versioning
8+
39
## 0.6.0
410

511
### Minor Changes

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "lovcode",
33
"private": true,
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"type": "module",
66
"packageManager": "pnpm@10.18.1",
77
"scripts": {
88
"dev": "vite",
99
"build": "tsc && vite build",
1010
"preview": "vite preview",
1111
"tauri": "tauri",
12-
"bump": "node scripts/bump-version.cjs"
12+
"bump": "node scripts/bump-version.cjs",
13+
"version": "changeset version && node scripts/sync-cargo-version.cjs"
1314
},
1415
"dependencies": {
1516
"@tailwindcss/typography": "^0.5.19",

scripts/sync-cargo-version.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
const root = path.resolve(__dirname, '..');
4+
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');
6+
cargo = cargo.replace(/^version = "[^"]+"$/m, `version = "${pkg.version}"`);
7+
fs.writeFileSync(path.join(root, 'src-tauri/Cargo.toml'), cargo);
8+
console.log(`✓ Cargo.toml → ${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 = "lovcode"
3-
version = "0.4.0"
3+
version = "0.6.1"
44
description = "A Tauri App"
55
authors = ["you"]
66
edition = "2021"

0 commit comments

Comments
 (0)