This commit is contained in:
YuCat-OVO 2024-03-02 17:24:02 +08:00
parent 0c2b7dc4b5
commit 4f339389f7

View File

@ -35,11 +35,11 @@ RUN \
fonts-wqy-zenhei \ fonts-wqy-zenhei \
desktop-file-utils && \ desktop-file-utils && \
echo "**** install BaiduNetdisk ****" && \ echo "**** install BaiduNetdisk ****" && \
if [ "${TARGETPLATFORM}" == "linux/amd64" ]; then \ if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
echo "**** ${TARGETPLATFORM}, reading from url.json ****"; \ echo "**** ${TARGETPLATFORM}, reading from url.json ****"; \
BAIDUNETDISK_VERSION=$(jq -r ".[-2]" /tmp/url.json); \ BAIDUNETDISK_VERSION=$(jq -r ".[-2]" /tmp/url.json); \
BAIDUNETDISK_URL=$(jq -r ".[-2]" /tmp/url.json); \ BAIDUNETDISK_URL=$(jq -r ".[-2]" /tmp/url.json); \
elif [ "${TARGETPLATFORM}" == "linux/arm64" ]; then \ elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
echo "**** ${TARGETPLATFORM}, reading from url.json ****"; \ echo "**** ${TARGETPLATFORM}, reading from url.json ****"; \
BAIDUNETDISK_VERSION=$(jq -r ".[-1]" /tmp/url.json); \ BAIDUNETDISK_VERSION=$(jq -r ".[-1]" /tmp/url.json); \
BAIDUNETDISK_URL=$(jq -r ".[-1]" /tmp/url.json); \ BAIDUNETDISK_URL=$(jq -r ".[-1]" /tmp/url.json); \