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.
This commit is contained in:
parent
a0fff4f62b
commit
37f00de59d
@ -18,7 +18,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 --user-agent="Mozilla" https://mirror.cloudcraft.info/SMAPI_latest.tar.gz -qO /data/nexus.zip && \
|
RUN wget --user-agent="Mozilla" https://mirror.cloudcraft.info/SMAPI_latest.tar.gz -qO /data/nexus.tar.gz && \
|
||||||
tar xf /data/nexus.tar.gz -C /data/nexus && \
|
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) && \
|
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'" || :
|
/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'" || :
|
||||||
|
Loading…
Reference in New Issue
Block a user