Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Mar 13, 2024
1 parent 9e38057 commit 5d93147
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/bundleUpdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,23 @@
rm -rf bundleTempDir
rm -rf bundle.tar.gz

echo "Creating tarball..."
node scripts/bundleUpdate.js

cd bundleTempDir || exit

RUNTIME_VERSION=$(cat metadata.json | jq -r '.runtimeVersion')
DEPLOYMENT_URL="http://localhost:12345/v1/upload?runtime-version=$RUNTIME_VERSION&bundle-version=12345"


tar czvf bundle.tar.gz ./*

curl --form 'bundle=@./bundle.tar.gz' \
--user bsky:abc \
--basic "http://localhost:12345/v1/upload?runtime-version=$RUNTIME_VERSION&bundle-version=12345678" \
/
echo "Deploying to $DEPLOYMENT_URL..."

#curl --form 'bundle=@./bundle.tar.gz' \
#--user bsky:abc \
#--basic "$DEPLOYMENT_URL" \
#/

cd ..

Expand Down

0 comments on commit 5d93147

Please sign in to comment.