Skip to content

Commit

Permalink
Merge pull request #642 from sonroyaalmerol/auto-depot-switch
Browse files Browse the repository at this point in the history
Auto retry downloading with DepotDownloader if steamcmd fails in arm64
  • Loading branch information
thijsvanloef authored Dec 19, 2024
2 parents 72f29c1 + 4b365be commit 032e952
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ LABEL maintainer="[email protected]" \
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
Expand Down
9 changes: 9 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 032e952

Please sign in to comment.