auth-runtime/install.sh

19 lines
404 B
Bash
Raw Normal View History

2026-03-11 23:33:43 +00:00
#!/usr/bin/env bash
# Compile auth-rt CLI binary and install to ~/.openclaw/bin/
2026-03-11 23:33:43 +00:00
#
# Usage:
# ./install.sh
# ./install.sh /custom/bin/dir
2026-03-11 23:33:43 +00:00
set -euo pipefail
cd "$(dirname "$0")"
2026-03-11 23:33:43 +00:00
BIN_DIR="${1:-$HOME/.openclaw/bin}"
mkdir -p "$BIN_DIR"
2026-03-11 23:33:43 +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
echo "Installed: $BIN_DIR/auth-rt"
echo "Ensure $BIN_DIR is in your PATH."