b57827f23f
Co-authored-by: Claude <noreply@anthropic.com>
22 lines
681 B
Bash
Executable File
22 lines
681 B
Bash
Executable File
#!/bin/bash
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
|
|
# Build numbers already present in the environment take precedence over the
|
|
# global EAS counters. Production OTA deploys rely on this to target the
|
|
# specific native build they are for, since the counters advance with every
|
|
# testflight build.
|
|
if [ -z "${BSKY_IOS_BUILD_NUMBER:-}" ]; then
|
|
outputIos=$(eas build:version:get -p ios)
|
|
BSKY_IOS_BUILD_NUMBER=${outputIos#*buildNumber - }
|
|
fi
|
|
|
|
if [ -z "${BSKY_ANDROID_VERSION_CODE:-}" ]; then
|
|
outputAndroid=$(eas build:version:get -p android)
|
|
BSKY_ANDROID_VERSION_CODE=${outputAndroid#*versionCode - }
|
|
fi
|
|
|
|
export BSKY_IOS_BUILD_NUMBER BSKY_ANDROID_VERSION_CODE
|
|
exec "$@"
|