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.
This commit is contained in:
Damir
2026-04-24 03:05:33 +02:00
committed by GitHub
parent 0b31ccacc1
commit 3cd7837b1f
+9 -1
View File
@@ -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"