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