From cdbdb369cb8b55c46c23a690fecb4ac669bbb49d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 1 Nov 2023 16:21:13 +0200 Subject: [PATCH] Bump version script --- bump_version.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bump_version.sh b/bump_version.sh index fc7cf9389..a5fc6ea46 100644 --- a/bump_version.sh +++ b/bump_version.sh @@ -1,15 +1,17 @@ #!/bin/bash -echo "Bump version..." - current_version=$(grep "version: 5.0." pubspec.yaml | cut -f2 -d "+" ) -echo "Current Version: $current_version" - new_vesion=$((current_version+1)) -echo "New Version: $new_vesion" -# pubspec.foss.yaml +echo "Bump version... $current_version => $new_vesion" + +sed -i -e "s/version: 5.0.$current_version+$current_version/version: 5.0.$new_vesion+$new_vesion/g" ./pubspec.yaml +sed -i -e "s/version: 5.0.$current_version+$current_version/version: 5.0.$new_vesion+$new_vesion/g" ./pubspec.foss.yaml + + + # pubspec.yaml +# pubspec.foss.yaml # flatpak.yml # com.invoiceninja.app.metainfo # contants