diff --git a/.gitignore b/.gitignore index 30f8582..c2658d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ node_modules/ -auth-rt diff --git a/install.sh b/install.sh index 4b9f7f0..e69a658 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Compile auth-rt CLI binary and install to ~/.openclaw/bin/ +# Install auth-rt CLI wrapper to ~/.openclaw/bin/ # # Usage: # ./install.sh @@ -9,10 +9,14 @@ set -euo pipefail cd "$(dirname "$0")" BIN_DIR="${1:-$HOME/.openclaw/bin}" +SELF_DIR="$(pwd)" mkdir -p "$BIN_DIR" -echo "Compiling auth-rt..." -bun build --compile src/cli.ts --outfile "$BIN_DIR/auth-rt" +cat > "$BIN_DIR/auth-rt" <