From 3cd7837b1f5dc9dc555e3fe859ca57b0227d52e4 Mon Sep 17 00:00:00 2001 From: Damir Date: Fri, 24 Apr 2026 03:05:33 +0200 Subject: [PATCH] fix: support architecture-specific download URLs in install script (#698) Just a small fix to include proper llama-swap binary when building the arm64 architecture. --- docker/unified/install-llama-swap.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docker/unified/install-llama-swap.sh b/docker/unified/install-llama-swap.sh index ca6437ec..b29a2f17 100755 --- a/docker/unified/install-llama-swap.sh +++ b/docker/unified/install-llama-swap.sh @@ -38,8 +38,16 @@ if [ "$VERSION" = "latest" ]; then echo "Latest version: ${VERSION}" fi + +ARCH=$(uname -m) +case "$ARCH" in + x86_64) ARCH="amd64" ;; + aarch64|arm64) ARCH="arm64" ;; + *) echo "FATAL: Unsupported architecture: $ARCH" >&2; exit 1 ;; +esac + # Download and extract -URL="https://github.com/${REPO}/releases/download/v${VERSION}/llama-swap_${VERSION}_linux_amd64.tar.gz" +URL="https://github.com/${REPO}/releases/download/v${VERSION}/llama-swap_${VERSION}_linux_${ARCH}.tar.gz" echo "=== Downloading llama-swap v${VERSION} ===" echo "URL: $URL" curl -fSL -o /tmp/llama-swap.tar.gz "$URL" @@ -56,4 +64,4 @@ fi echo "$VERSION" > /install/llama-swap-version echo "=== llama-swap v${VERSION} installed ===" -ls -la /install/bin/llama-swap +ls -la /install/bin/llama-swap \ No newline at end of file