diff --git a/Dockerfile b/Dockerfile index 8a54e867b..b853c5ca2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,7 @@ LABEL maintainer="thijs@loef.dev" \ ARG SUPERCRONIC_SHA1SUM_ARM64="e0f0c06ebc5627e43b25475711e694450489ab00 " ARG SUPERCRONIC_SHA1SUM_AMD64="71b0d58cc53f6bd72cf2f293e09e294b79c666d8 " ARG SUPERCRONIC_VERSION="0.2.33" -ARG DEPOT_DOWNLOADER_VERSION="2.7.3" +ARG DEPOT_DOWNLOADER_VERSION="2.7.4" # update and install dependencies # hadolint ignore=DL3008 diff --git a/scripts/start.sh b/scripts/start.sh index 0982ba97f..f26abec11 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -36,6 +36,15 @@ fi # Check if the architecture is arm64 if [ "$architecture" == "arm64" ]; then # create an arm64 version of ./PalServer.sh + if ! fileExists "./PalServer.sh" && [ "${USE_DEPOT_DOWNLOADER,,}" != true ]; then + LogInfo "SteamCMD failed to download the server properly, attempting to use DepotDownloader." + export USE_DEPOT_DOWNLOADER=true + InstallServer + + # reset env var after installation + unset USE_DEPOT_DOWNLOADER + fi + cp ./PalServer.sh ./PalServer-arm64.sh sed -i "s|\(\"\$UE_PROJECT_ROOT\/Pal\/Binaries\/Linux\/PalServer-Linux-Shipping\" Pal \"\$@\"\)|LD_LIBRARY_PATH=/home/steam/steamcmd/linux64:\$LD_LIBRARY_PATH /usr/local/bin/box64 \1|" ./PalServer-arm64.sh