From a3ebe392edd7eedcf8c327777f22b598922b855f Mon Sep 17 00:00:00 2001 From: retr0 Date: Sat, 4 Apr 2026 01:38:24 +0200 Subject: [PATCH] Fix FAH client download filter --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 97d1d46..ba52460 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,13 +33,13 @@ RUN \ netcat-openbsd && \ echo "**** install foldingathome ****" && \ if [ "${BUILD_ARCH}" = "aarch64" ]; then \ - ARCH_PATTERN="arm64"; \ + FAH_WORKER="debian-stable-arm64"; \ else \ - ARCH_PATTERN="x86_64"; \ + FAH_WORKER="debian-10-64bit"; \ fi && \ DOWNLOAD_PATH=$(curl -fsSL "https://download.foldingathome.org/releases/public/fah-client/meta.json" | \ - jq -r --arg arch "${ARCH_PATTERN}" \ - '.[] | select((.package | contains("linux")) and (.package | contains("release")) and (.package | contains($arch)) and (.package | endswith(".tar.bz2"))) | .package' \ + jq -r --arg worker "${FAH_WORKER}" \ + '.[] | select(.worker == $worker and .mode == "release" and (.package | endswith(".tar.bz2"))) | .package' \ | head -1) && \ echo "Downloading FAH client: ${DOWNLOAD_PATH}" && \ curl -fsSL "https://download.foldingathome.org/releases/public/fah-client/${DOWNLOAD_PATH}" \