24 lines
569 B
Bash
24 lines
569 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends nodejs
|
|
apt-get clean
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
npm install -g openclaw@latest opencode-ai @anthropic-ai/claude-code
|
|
|
|
curl -fsSL https://bun.sh/install | bash -
|
|
export PATH="$HOME/.bun/bin:$PATH"
|
|
|
|
git clone --depth 1 https://github.com/FoundDream/miniclawd.git /opt/miniclawd
|
|
cd /opt/miniclawd
|
|
bun install
|
|
bun run build
|
|
npm install -g .
|
|
|
|
rm -rf /opt/miniclawd "$HOME/.bun"
|