add user agent to smapi too

This commit is contained in:
Phuong 2024-04-11 19:12:20 -04:00 committed by GitHub
parent 2cd283515e
commit 2d5153c60d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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