From ea157b4898e3854f19270c2c5c070c8a93f5f10d Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Sat, 25 May 2024 00:02:36 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(server):=20Rename=20`/netris/p?= =?UTF-8?q?roton`=20to=20`netris-proton`=20(#61)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description **What issue are you solving (or what feature are you adding) and how are you doing it?** With help from @djpremier, rename `/usr/bin/netris/proton` as "the script cannot be found in bash `(eg.: $ proton -r /games/AlanWake.exe)` if it is in the subdirectory of /usr/bin, probably because it is found in a subdir inside `/usr/bin` " --- .scripts/entrypoint.sh | 3 +++ server.Dockerfile | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.scripts/entrypoint.sh b/.scripts/entrypoint.sh index 91e1e49c..e25231fd 100644 --- a/.scripts/entrypoint.sh +++ b/.scripts/entrypoint.sh @@ -60,6 +60,9 @@ sudo ln -snf /dev/ptmx /dev/tty7 # Start DBus without systemd sudo /etc/init.d/dbus start +# Install Proton-GE for this user +netris-proton -i + # Install NVIDIA userspace driver components including X graphic libraries if ! command -v nvidia-xconfig &>/dev/null; then # Driver version is provided by the kernel through the container toolkit diff --git a/server.Dockerfile b/server.Dockerfile index ab8e308e..7f3e63d2 100644 --- a/server.Dockerfile +++ b/server.Dockerfile @@ -32,9 +32,8 @@ RUN mkdir -pm755 /etc/apt/keyrings && curl -fsSL -o /etc/apt/keyrings/winehq-arc && curl -fsSL -o /usr/share/bash-completion/completions/winetricks "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion" #Install Proton -COPY .scripts/proton /usr/bin/netris/ -RUN chmod +x /usr/bin/netris/proton \ - && /usr/bin/netris/proton -i +COPY .scripts/proton /usr/bin/netris-proton +RUN chmod 755 /usr/bin/netris-proton ARG USERNAME=netris \ PUID=1000 \