From 6085fd87b5f5dab9abae3117be42356c131427cb Mon Sep 17 00:00:00 2001 From: Vladimir Abramichev <2648655+descorp@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:00:29 +0000 Subject: [PATCH] chore: update version script --- scripts/set-version.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/set-version.sh b/scripts/set-version.sh index 7d4ab4ca6..8788e0d57 100755 --- a/scripts/set-version.sh +++ b/scripts/set-version.sh @@ -5,7 +5,12 @@ echo "Set Version" echo $VERSION IOS_PATH="ios/Version.swift" -sed -i '' "s/{SDK_VERSION}/$VERSION/g" $IOS_PATH - ANDROID_PATH="android/dependencies.gradle" -sed -i '' "s/{SDK_VERSION}/$VERSION/g" $ANDROID_PATH \ No newline at end of file + +if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' "s/{SDK_VERSION}/$VERSION/g" $IOS_PATH + sed -i '' "s/{SDK_VERSION}/$VERSION/g" $ANDROID_PATH +else + sed -i -e 's|{SDK_VERSION}|$VERSION|g' $IOS_PATH + sed -i -e 's|{SDK_VERSION}|$VERSION|g' $ANDROID_PATH +fi