From 6d91726e00620b19f14141598df09ad053e500e0 Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 9 Feb 2024 16:57:28 -0800 Subject: eas nightlies (#2826) * add comment to config * add ios build num bump script * remove bak * add bump script for android * github action * add comment to config * testing * testing attempt 2 * add app id * ok add the app id the right way * Apply automatic changes * test the commit message * test the commit message again * Nightly iOS Build Bump * finished --------- Co-authored-by: haileyok --- scripts/bumpAndroidBuildNumber.sh | 10 ++++++++++ scripts/bumpIosBuildNumber.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 scripts/bumpAndroidBuildNumber.sh create mode 100755 scripts/bumpIosBuildNumber.sh (limited to 'scripts') 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" diff --git a/scripts/bumpIosBuildNumber.sh b/scripts/bumpIosBuildNumber.sh new file mode 100755 index 000000000..b78d2e69d --- /dev/null +++ b/scripts/bumpIosBuildNumber.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# The number here should always be the line number the iOS build variable is on +line=$(sed "24q;d" ./app.config.js) +currentBuildNumber=$(echo "$line" | grep -oE '[0-9]+([.][0-9]+)?') +newBuildNumber=$((currentBuildNumber+1)) +newBuildVariable="const IOS_BUILD_NUMBER = '$newBuildNumber'" +sed -i.bak "24s/.*/ $newBuildVariable/" ./app.config.js +rm -rf ./app.config.js.bak + +echo "iOS build number bumped to $newBuildNumber" -- cgit 1.4.1