Fix FAH client download filter

This commit is contained in:
2026-04-04 01:38:24 +02:00
parent c4ddb25467
commit a3ebe392ed

View File

@@ -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}" \