about summary refs log tree commit diff
path: root/scripts/bundleUpdate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bundleUpdate.sh')
-rw-r--r--scripts/bundleUpdate.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/bundleUpdate.sh b/scripts/bundleUpdate.sh
index 18db81a20..5927a36c8 100644
--- a/scripts/bundleUpdate.sh
+++ b/scripts/bundleUpdate.sh
@@ -9,10 +9,13 @@ rm -rf bundle.tar.gz
 echo "Creating tarball..."
 node scripts/bundleUpdate.js
 
-cd bundleTempDir || exit
+if [ -z "$RUNTIME_VERSION" ]; then
+  RUNTIME_VERSION=$(cat package.json | jq '.version' -r)
+fi
 
+cd bundleTempDir || exit
 BUNDLE_VERSION=$(date +%s)
-DEPLOYMENT_URL="https://updates.bsky.app/v1/upload?runtime-version=$RUNTIME_VERSION&bundle-version=$BUNDLE_VERSION"
+DEPLOYMENT_URL="https://updates.bsky.app/v1/upload?runtime-version=$RUNTIME_VERSION&bundle-version=$BUNDLE_VERSION&channel=$CHANNEL_NAME&ios-build-number=$BSKY_IOS_BUILD_NUMBER&android-build-number=$BSKY_ANDROID_VERSION_CODE"
 
 tar czvf bundle.tar.gz ./*