diff options
Diffstat (limited to 'scripts/bumpAndroidBuildNumber.sh')
-rwxr-xr-x | scripts/bumpAndroidBuildNumber.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/bumpAndroidBuildNumber.sh b/scripts/bumpAndroidBuildNumber.sh new file mode 100755 index 000000000..105f1296d --- /dev/null +++ b/scripts/bumpAndroidBuildNumber.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# The number here should always be the line number the iOS build variable is on +line=$(sed "30q;d" ./app.config.js) +currentBuildNumber=$(echo "$line" | grep -oE '[0-9]+([.][0-9]+)?') +newBuildNumber=$((currentBuildNumber+1)) +newBuildVariable="const ANDROID_VERSION_CODE = '$newBuildNumber'" +sed -i.bak "30s/.*/ $newBuildVariable/" ./app.config.js +rm -rf ./app.config.js.bak + +echo "Android build number bumped to $newBuildNumber" |