Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ p.write_text(json.dumps(data, indent=2) + '\n')
sed -i '' "s/^version = \".*\"/version = \"$VERSION\"/" \
"$ROOT/desktop/src-tauri/Cargo.toml"

# Cargo.lock carries the crate's own version too, and cargo
# rewrites it on the next build. Leaving it behind means the
# committed lock is a release or two stale and every build
# dirties the working tree -- which trains people to discard
# the change without reading it. --offline so a version bump
# does not need the network, and -p so nothing else moves.
(cd "$ROOT/desktop/src-tauri" \
&& cargo update --offline -p kaisho-desktop >/dev/null)

# frontend/package.json
python3 -c "
import json, pathlib
Expand All @@ -72,4 +81,5 @@ data['version'] = '$VERSION'
p.write_text(json.dumps(data, indent=2) + '\n')
"

echo "Done: pyproject.toml, tauri.conf.json, Cargo.toml, frontend/package.json all at v$VERSION"
echo "Done: pyproject.toml, tauri.conf.json, Cargo.toml, \
Cargo.lock, frontend/package.json all at v$VERSION"
Loading