diff options
author | Hailey <me@haileyok.com> | 2024-02-09 16:57:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 16:57:28 -0800 |
commit | 6d91726e00620b19f14141598df09ad053e500e0 (patch) | |
tree | d2185d96a0ae4ba1121f36318a524ef90d9d345c /scripts | |
parent | ad8f9e560d7f320d1b7db5b816b17db825b86ce7 (diff) | |
download | voidsky-6d91726e00620b19f14141598df09ad053e500e0.tar.zst |
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 <haileyok@users.noreply.github.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bumpAndroidBuildNumber.sh | 10 | ||||
-rwxr-xr-x | scripts/bumpIosBuildNumber.sh | 10 |
2 files changed, 20 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" 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" |