An ATproto social media client -- with an independent Appview.
at main 750 B view raw
1#!/bin/bash 2set -o errexit 3set -o pipefail 4set -o nounset 5 6rm -rf bundleTempDir 7rm -rf bundle.tar.gz 8 9echo "Creating tarball..." 10node scripts/bundleUpdate.js 11 12if [ -z "$RUNTIME_VERSION" ]; then 13 RUNTIME_VERSION=$(cat package.json | jq '.version' -r) 14fi 15 16cd bundleTempDir || exit 17BUNDLE_VERSION=$(date +%s) 18DEPLOYMENT_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" 19 20tar czvf bundle.tar.gz ./* 21 22echo "Deploying to $DEPLOYMENT_URL..." 23 24curl -o - --form "bundle=@./bundle.tar.gz" --user "bsky:$DENIS_API_KEY" --basic "$DEPLOYMENT_URL" 25 26cd .. 27 28rm -rf bundleTempDir 29rm -rf bundle.tar.gz