From 7ab322620402a25ee57cfd860114ee7f9afbe076 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Wed, 4 Feb 2026 22:51:42 -0800 Subject: [PATCH] fix: add Linux ARM64 support to install script and docs --- docs/deploy/docker.mdx | 22 +++++++++++++++++----- scripts/release/static/install.sh | 11 +++++++++-- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/docs/deploy/docker.mdx b/docs/deploy/docker.mdx index 4961b0c..7c85c3b 100644 --- a/docs/deploy/docker.mdx +++ b/docs/deploy/docker.mdx @@ -75,9 +75,21 @@ await client.createSession("my-session", { To build a static binary for use in minimal containers: -```bash -docker build -f docker/release/linux-x86_64.Dockerfile -t sandbox-agent-build . -docker run --rm -v "$PWD/artifacts:/artifacts" sandbox-agent-build -``` + + + ```bash + docker build -f docker/release/linux-x86_64.Dockerfile -t sandbox-agent-build . + docker run --rm -v "$PWD/artifacts:/artifacts" sandbox-agent-build + ``` -The binary will be at `./artifacts/sandbox-agent-x86_64-unknown-linux-musl`. + The binary will be at `./artifacts/sandbox-agent-x86_64-unknown-linux-musl`. + + + ```bash + docker build -f docker/release/linux-aarch64.Dockerfile -t sandbox-agent-build . + docker run --rm -v "$PWD/artifacts:/artifacts" sandbox-agent-build + ``` + + The binary will be at `./artifacts/sandbox-agent-aarch64-unknown-linux-musl`. + + diff --git a/scripts/release/static/install.sh b/scripts/release/static/install.sh index 5ccf931..bf1007d 100755 --- a/scripts/release/static/install.sh +++ b/scripts/release/static/install.sh @@ -30,9 +30,16 @@ if [ "$(printf '%s' "$UNAME" | cut -c 1-6)" = "Darwin" ]; then fi elif [ "$(printf '%s' "$UNAME" | cut -c 1-5)" = "Linux" ]; then echo - echo "> Detected Linux ($(getconf LONG_BIT) bit)" + echo "> Detected Linux ($ARCH)" - FILE_NAME="sandbox-agent-x86_64-unknown-linux-musl" + if [ "$ARCH" = "x86_64" ]; then + FILE_NAME="sandbox-agent-x86_64-unknown-linux-musl" + elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then + FILE_NAME="sandbox-agent-aarch64-unknown-linux-musl" + else + echo "Unknown arch $ARCH" 1>&2 + exit 1 + fi else echo "Unable to determine platform" 1>&2 exit 1