From 683821b667f144e3338c05937fa79ef0a47b7201 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 22 Oct 2024 03:50:48 +0300 Subject: [PATCH] build: fix version script --- scripts/version.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/version.sh b/scripts/version.sh index f82bd71..699c9dd 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -77,10 +77,12 @@ fi # Update version in build.gradle -sed -i 's/versionName [0-9a-zA-Z -_]*/versionName "'"$VERSION_NEXT"'"/' android/app/build.gradle +sed -i'.bak' -e 's/versionName [0-9a-zA-Z -_]*/versionName "'"$VERSION_NEXT"'"/' android/app/build.gradle +rm -f android/app/build.gradle.bak # Update version in Cargo.toml -sed -i "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml +sed -i'.bak' -e "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml +rm -f Cargo.toml.bak # Update Cargo.lock as this changes when # updating the version in your manifest @@ -96,4 +98,4 @@ git commit -m "release: v$VERSION_NEXT" # Create a tag and push to master branch git tag "v$VERSION_NEXT" master -git push origin master --follow-tags +#git push origin master --follow-tags