#!/usr/bin/env bash # Compile auth-rt CLI binary and install to ~/.openclaw/bin/ # # Usage: # ./install.sh # ./install.sh /custom/bin/dir set -euo pipefail cd "$(dirname "$0")" BIN_DIR="${1:-$HOME/.openclaw/bin}" mkdir -p "$BIN_DIR" echo "Compiling auth-rt..." bun build --compile src/cli.ts --outfile "$BIN_DIR/auth-rt" echo "Installed: $BIN_DIR/auth-rt" echo "Ensure $BIN_DIR is in your PATH."