Alternative web application for the pdsadmin command
at main 625 B view raw
1#!/usr/bin/env bash 2set -euo pipefail 3 4ATPROTO_SHA=$(< .atproto-sha) 5ATPROTO_DIR="$HOME/.cache/pdsadmin-web/atproto/$ATPROTO_SHA" 6 7if [ -d "$ATPROTO_DIR" ]; then 8 echo "[scripts/run-dev-env.sh] Skipping atproto download, already exists." 9else 10 echo "[scripts/run-dev-env.sh] Downloading atproto..." 11 pnpm giget gh:bluesky-social/atproto#$ATPROTO_SHA $ATPROTO_DIR --force --preferOffline 12fi 13cd $ATPROTO_DIR 14 15if [ -d "$ATPROTO_DIR/packages/dev-env/dist" ]; then 16 echo "[scripts/run-dev-env.sh] Skipping atproto build, already exists." 17else 18 echo "[scripts/run-dev-env.sh] Building atproto..." 19 make deps 20 make build 21fi