mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-22 09:02:58 -05:00
feat(monero): Remote node load balancing (#420)
This commit is contained in:
parent
a201c13b5d
commit
ff5e1c02bc
55 changed files with 4537 additions and 154 deletions
26
dev_scripts/bump-version.sh
Executable file
26
dev_scripts/bump-version.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION=$1
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
echo "Bumping version to $VERSION"
|
||||
|
||||
# Using sed and assuming GNU sed syntax as this is for the github workflow.
|
||||
|
||||
# Update version in tauri.conf.json
|
||||
sed -i 's/"version": "[^"]*"/"version": "'"$VERSION"'"/' src-tauri/tauri.conf.json
|
||||
|
||||
# Update version in Cargo.toml files
|
||||
sed -i -E 's/^version = "[0-9]+\.[0-9]+\.[0-9]+"/version = "'"$VERSION"'"/' swap/Cargo.toml src-tauri/Cargo.toml
|
||||
|
||||
# Update changelog
|
||||
sed -i "s/^## \\[Unreleased\\]/## [$VERSION] - $TODAY/" CHANGELOG.md
|
||||
# Add a new [Unreleased] section at the top
|
||||
sed -i '3i## [Unreleased]\n' CHANGELOG.md
|
||||
|
||||
echo "Updated all files to version $VERSION."
|
||||
Loading…
Add table
Add a link
Reference in a new issue