Merge pull request #8 from Landmaster/add-user-agent

add user agent to mirror.cloudcraft.info download to fix http 403 error
This commit is contained in:
norimicry 2024-04-19 17:45:27 -04:00 committed by GitHub
commit 35465086bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ RUN APP_ICON_URL=https://stardewcommunitywiki.com/mediawiki/images/4/48/Fiddlehe
# Game + ModLoader 1.6.2 4.0.1 # Game + ModLoader 1.6.2 4.0.1
RUN mkdir -p /data/Stardew && \ RUN mkdir -p /data/Stardew && \
mkdir -p /data/nexus && \ 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 && \ tar xf /data/latest.tar.gz -C /data/Stardew && \
rm /data/latest.tar.gz rm /data/latest.tar.gz
@ -22,7 +22,7 @@ RUN wget -qO dotnet.tar.gz https://download.visualstudio.microsoft.com/download/
&& rm dotnet.tar.gz \ && rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet && 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/ && \ 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\"" || : /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\"" || :