Skip to content

Commit b4ddd36

Browse files
committed
build: add version management and build tooling
- Add scripts/bump-version.sh for coordinated version updates - Updates version in package.json, Cargo.toml, tauri.conf.json, and Info.plist - Ensures version consistency across all project files - Provides clear instructions for tagging and releasing
1 parent 7b70033 commit b4ddd36

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

scripts/bump-version.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# Script to bump version across all files
4+
# Usage: ./scripts/bump-version.sh 1.0.0
5+
6+
set -e
7+
8+
if [ -z "$1" ]; then
9+
echo "Usage: $0 <version>"
10+
echo "Example: $0 1.0.0"
11+
exit 1
12+
fi
13+
14+
VERSION=$1
15+
16+
echo "Bumping version to $VERSION..."
17+
18+
# Update package.json
19+
sed -i.bak "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json && rm package.json.bak
20+
21+
# Update Cargo.toml
22+
sed -i.bak "s/^version = \".*\"/version = \"$VERSION\"/" src-tauri/Cargo.toml && rm src-tauri/Cargo.toml.bak
23+
24+
# Update tauri.conf.json
25+
sed -i.bak "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" src-tauri/tauri.conf.json && rm src-tauri/tauri.conf.json.bak
26+
27+
# Update Info.plist
28+
sed -i.bak "s/<string>.*<\/string><!-- VERSION -->/<string>$VERSION<\/string><!-- VERSION -->/" src-tauri/Info.plist && rm src-tauri/Info.plist.bak
29+
30+
echo "✅ Version bumped to $VERSION in all files"
31+
echo ""
32+
echo "Next steps:"
33+
echo "1. Review the changes: git diff"
34+
echo "2. Commit: git commit -am \"chore: bump version to v$VERSION\""
35+
echo "3. Tag: git tag -a v$VERSION -m \"Release v$VERSION\""
36+
echo "4. Push: git push && git push --tags"

0 commit comments

Comments
 (0)