From a0fff4f62b68574e1742696b17e86b7684a233e7 Mon Sep 17 00:00:00 2001 From: norimicry Date: Mon, 22 Apr 2024 17:21:04 -0400 Subject: [PATCH] Update download and extraction method in Dockerfile Changed the file type to be downloaded from .zip to .tar.gz and updated the code to extract it from .zip format to .tar.gz format. As a result, the script now downloads and correctly extracts the SMAPI_latest.tar.gz file from the source. --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 3b460ef..ea50078 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,8 +18,8 @@ RUN wget -qO dotnet.tar.gz https://download.visualstudio.microsoft.com/download/ rm dotnet.tar.gz &&\ ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet -RUN wget --user-agent="Mozilla" https://mirror.cloudcraft.info/SMAPI_latest.zip -qO /data/nexus.zip && \ - unzip /data/nexus.zip -d /data/nexus/ && \ +RUN wget --user-agent="Mozilla" https://mirror.cloudcraft.info/SMAPI_latest.tar.gz -qO /data/nexus.zip && \ + tar xf /data/nexus.tar.gz -C /data/nexus && \ SMAPI_INSTALLER=$(find /data/nexus -name 'SMAPI*.*Installer' -type f -path "*/SMAPI * installer/internal/linux/*" | head -n 1) && \ /bin/bash -c "SMAPI_NO_TERMINAL=true SMAPI_USE_CURRENT_SHELL=true echo -e '2\n\n' | \"$SMAPI_INSTALLER\" --install --game-path '/data/Stardew/game'" || :