From b4ddd360e56d6ca4d40ff3f2abda543f7034b843 Mon Sep 17 00:00:00 2001 From: Vivek R <123vivekr@gmail.com> Date: Fri, 1 Aug 2025 17:12:21 +0530 Subject: [PATCH] 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 --- scripts/bump-version.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 scripts/bump-version.sh diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh new file mode 100755 index 0000000..dd031e2 --- /dev/null +++ b/scripts/bump-version.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Script to bump version across all files +# Usage: ./scripts/bump-version.sh 1.0.0 + +set -e + +if [ -z "$1" ]; then + echo "Usage: $0 " + echo "Example: $0 1.0.0" + exit 1 +fi + +VERSION=$1 + +echo "Bumping version to $VERSION..." + +# Update package.json +sed -i.bak "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json && rm package.json.bak + +# Update Cargo.toml +sed -i.bak "s/^version = \".*\"/version = \"$VERSION\"/" src-tauri/Cargo.toml && rm src-tauri/Cargo.toml.bak + +# Update tauri.conf.json +sed -i.bak "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" src-tauri/tauri.conf.json && rm src-tauri/tauri.conf.json.bak + +# Update Info.plist +sed -i.bak "s/.*<\/string>/$VERSION<\/string>/" src-tauri/Info.plist && rm src-tauri/Info.plist.bak + +echo "✅ Version bumped to $VERSION in all files" +echo "" +echo "Next steps:" +echo "1. Review the changes: git diff" +echo "2. Commit: git commit -am \"chore: bump version to v$VERSION\"" +echo "3. Tag: git tag -a v$VERSION -m \"Release v$VERSION\"" +echo "4. Push: git push && git push --tags"