From 2cd283515e040b31ad7824bca24822a4547fbae0 Mon Sep 17 00:00:00 2001 From: Phuong Date: Wed, 10 Apr 2024 22:50:41 -0400 Subject: [PATCH 1/2] add user agent to mirror.cloudcraft.info download --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 7670586..3a24f2a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ RUN APP_ICON_URL=https://stardewcommunitywiki.com/mediawiki/images/4/48/Fiddlehe # Game + ModLoader 1.6.2 4.0.1 RUN mkdir -p /data/Stardew && \ mkdir -p /data/nexus && \ - wget https://mirror.cloudcraft.info/Stardew_Valley_latest.tar.gz -qO /data/latest.tar.gz && \ + wget --user-agent="Mozilla" https://mirror.cloudcraft.info/Stardew_Valley_latest.tar.gz -qO /data/latest.tar.gz && \ tar xf /data/latest.tar.gz -C /data/Stardew && \ rm /data/latest.tar.gz @@ -41,4 +41,4 @@ COPY run /etc/services.d/utils/run RUN chmod +x /etc/services.d/utils/run COPY docker-entrypoint.sh /startapp.sh -RUN chmod +x /startapp.sh \ No newline at end of file +RUN chmod +x /startapp.sh From 2d5153c60dd3e9efd11d8f274320ff1b3cc3b7d3 Mon Sep 17 00:00:00 2001 From: Phuong Date: Thu, 11 Apr 2024 19:12:20 -0400 Subject: [PATCH 2/2] add user agent to smapi too --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 3a24f2a..b641031 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,7 +22,7 @@ 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 https://mirror.cloudcraft.info/SMAPI_latest.zip -qO /data/nexus.zip && \ +RUN wget --user-agent="Mozilla" https://mirror.cloudcraft.info/SMAPI_latest.zip -qO /data/nexus.zip && \ unzip /data/nexus.zip -d /data/nexus/ && \ /bin/bash -c "SMAPI_NO_TERMINAL=true SMAPI_USE_CURRENT_SHELL=true echo -e \"2\n\n\" | /data/nexus/SMAPI\ 4.0.3\ installer/internal/linux/SMAPI.Installer --install --game-path \"/data/Stardew/game\"" || :