Skip to content

Commit

Permalink
Merge pull request #80 from jsknnr/dev
Browse files Browse the repository at this point in the history
update ge-proton to 9-18 and switch steamcmd pull from cdn direct ins…
  • Loading branch information
jsknnr authored Nov 7, 2024
2 parents 4f47b6d + 707a6fb commit 26c1d27
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
40 changes: 18 additions & 22 deletions container/proton/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ ARG CONTAINER_UID=10000
ENV DEBIAN_FRONTEND "noninteractive"
ENV STEAM_APP_ID "2278520"
ENV HOME "/home/steam"
ENV STEAM_PATH "/home/steam/Steam"
ENV ENSHROUDED_PATH "/home/steam/enshrouded"
ENV ENSHROUDED_CONFIG "${ENSHROUDED_PATH}/enshrouded_server.json"
ENV GE_PROTON_VERSION "8-30"
ENV GE_PROTON_VERSION "9-18"
ENV GE_PROTON_URL "https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton${GE_PROTON_VERSION}/GE-Proton${GE_PROTON_VERSION}.tar.gz"
ENV STEAM_COMPAT_CLIENT_INSTALL_PATH "$STEAM_PATH"
ENV STEAM_COMPAT_DATA_PATH "${STEAM_PATH}/steamapps/compatdata/${STEAM_APP_ID}"
ENV ULWGL_ID 0
ENV STEAMCMD_PATH="/home/steam/steamcmd"
ENV STEAM_SDK64_PATH="/home/steam/.steam/sdk64"
ENV STEAM_SDK32_PATH="/home/steam/.steam/sdk32"
ENV STEAM_COMPAT_CLIENT_INSTALL_PATH "$STEAMCMD_PATH"
ENV STEAM_COMPAT_DATA_PATH "${STEAMCMD_PATH}/steamapps/compatdata/${STEAM_APP_ID}"
ENV UMU_ID 0

RUN groupadd -g $CONTAINER_GID steam \
&& useradd -g $CONTAINER_GID -u $CONTAINER_UID -m steam \
&& sed -i 's#^Components: .*#Components: main non-free contrib#g' /etc/apt/sources.list.d/debian.sources \
&& echo steam steam/question select "I AGREE" | debconf-set-selections \
&& echo steam steam/license note '' | debconf-set-selections \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
Expand All @@ -29,12 +28,9 @@ RUN groupadd -g $CONTAINER_GID steam \
dbus \
libfreetype6 \
curl \
wget \
jq \
locales \
lib32gcc-s1 \
steamcmd \
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \
&& echo 'LANG="en_US.UTF-8"' > /etc/default/locale \
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
&& locale-gen \
Expand All @@ -48,17 +44,17 @@ USER steam

RUN mkdir "$ENSHROUDED_PATH" \
&& mkdir -p "${ENSHROUDED_PATH}/savegame" \
&& mkdir -p "${STEAM_PATH}/compatibilitytools.d" \
&& mkdir -p "${STEAM_PATH}/steamapps/compatdata/${STEAM_APP_ID}" \
&& mkdir -p "${HOME}/.steam" \
&& steamcmd +quit \
&& ln -s "${HOME}/.local/share/Steam/steamcmd/linux32" "${HOME}/.steam/sdk32" \
&& ln -s "${HOME}/.local/share/Steam/steamcmd/linux64" "${HOME}/.steam/sdk64" \
&& ln -s "${HOME}/.steam/sdk32/steamclient.so" "${HOME}/.steam/sdk32/steamservice.so" \
&& ln -s "${HOME}/.steam/sdk64/steamclient.so" "${HOME}/.steam/sdk64/steamservice.so" \
&& wget "$GE_PROTON_URL" -O "/home/steam/GE-Proton${GE_PROTON_VERSION}.tgz" \
&& tar -x -C "${STEAM_PATH}/compatibilitytools.d/" -f "/home/steam/GE-Proton${GE_PROTON_VERSION}.tgz" \
&& rm "/home/steam/GE-Proton${GE_PROTON_VERSION}.tgz"
&& mkdir -p "${STEAMCMD_PATH}/compatibilitytools.d" \
&& mkdir -p "${STEAMCMD_PATH}/steamapps/compatdata/${STEAM_APP_ID}" \
&& curl -sqL https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar zxvf - -C ${STEAMCMD_PATH} \
&& chmod +x ${STEAMCMD_PATH}/steamcmd.sh \
&& ${STEAMCMD_PATH}/steamcmd.sh +quit \
&& mkdir -p /home/steam/.steam \
&& ln -s ${STEAMCMD_PATH}/linux64 ${STEAM_SDK64_PATH} \
&& ln -s ${STEAM_SDK64_PATH}/steamclient.so ${STEAM_SDK64_PATH}/steamservice.so \
&& ln -s ${STEAMCMD_PATH}/linux32 ${STEAM_SDK32_PATH} \
&& ln -s ${STEAM_SDK32_PATH}/steamclient.so ${STEAM_SDK32_PATH}/steamservice.so \
&& curl -sqL "$GE_PROTON_URL" | tar zxvf - -C "${STEAMCMD_PATH}/compatibilitytools.d/"

COPY entrypoint.sh /home/steam/entrypoint.sh
COPY enshrouded_server_example.json /home/steam/enshrouded_server_example.json
Expand Down
4 changes: 2 additions & 2 deletions container/proton/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fi

# Install/Update Enshrouded
echo "$(timestamp) INFO: Updating Enshrouded Dedicated Server"
steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "$ENSHROUDED_PATH" +login anonymous +app_update ${STEAM_APP_ID} validate +quit
${STEAMCMD_PATH}/steamcmd.sh +@sSteamCmdForcePlatformType windows +force_install_dir "$ENSHROUDED_PATH" +login anonymous +app_update ${STEAM_APP_ID} validate +quit

# Check that steamcmd was successful
if [ $? != 0 ]; then
Expand Down Expand Up @@ -103,7 +103,7 @@ ln -sf /proc/1/fd/1 "${ENSHROUDED_PATH}/logs/enshrouded_server.log"
# Launch Enshrouded
echo "$(timestamp) INFO: Starting Enshrouded Dedicated Server"

${STEAM_PATH}/compatibilitytools.d/GE-Proton${GE_PROTON_VERSION}/proton run ${ENSHROUDED_PATH}/enshrouded_server.exe &
${STEAMCMD_PATH}/compatibilitytools.d/GE-Proton${GE_PROTON_VERSION}/proton run ${ENSHROUDED_PATH}/enshrouded_server.exe &

# Find pid for enshrouded_server.exe
timeout=0
Expand Down

0 comments on commit 26c1d27

Please sign in to comment.