summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-06-25 22:35:41 +0200
committerLinus Färnstrand <linus@mullvad.net>2018-06-26 14:42:56 +0200
commita0f5229419fc12f37338afc700226be65d582eb3 (patch)
tree0de51a32452d8da3594cad877f15938f9d143ab5
parent3b8d6ddd2770f0fc6ac3081cd014d13b6005760b (diff)
downloadmullvadvpn-a0f5229419fc12f37338afc700226be65d582eb3.tar.xz
mullvadvpn-a0f5229419fc12f37338afc700226be65d582eb3.zip
Make prepare_release.sh also update Cargo.toml
-rwxr-xr-xprepare_release.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/prepare_release.sh b/prepare_release.sh
index f75732b228..ad9858d070 100755
--- a/prepare_release.sh
+++ b/prepare_release.sh
@@ -29,12 +29,19 @@ if [[ $(grep $VERSION CHANGELOG.md) == "" ]]; then
exit 1
fi
-echo "Updating version in package.json..."
+echo "Updating version in metadata files..."
SEMVER_VERSION=`echo $VERSION | sed -re 's/($|-.*)/.0\1/g'`
-sed -i -re "s/\"version\": \"[^\"]+\",/\"version\": \"$SEMVER_VERSION\",/g" package.json
+sed -i -re "s/\"version\": \"[^\"]+\",/\"version\": \"$SEMVER_VERSION\",/g" \
+ package.json
+sed -i -re "s/^version = \"[^\"]+\"\$/version = \"$SEMVER_VERSION\"/g" \
+ mullvad-daemon/Cargo.toml \
+ mullvad-cli/Cargo.toml
-echo "Commiting package.json change to git..."
-git commit -S package.json -m "Updating version in package.json"
+echo "Commiting metadata changes to git..."
+git commit -S -m "Updating version in package.json" \
+ package.json \
+ mullvad-daemon/Cargo.toml \
+ mullvad-cli/Cargo.toml
echo "Tagging current git commit with release tag $VERSION..."
git tag -s $VERSION -m $VERSION