Skip to content

Commit

Permalink
Fix proton install
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Mar 5, 2024
1 parent e432942 commit a5efd38
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
11 changes: 5 additions & 6 deletions build/COPY_ROOT/opt/ai-dock/bin/preflight.d/30-steam.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
mkdir -p /opt/ai-dock/lib/steam-native

steam_dir="${home_dir}"/.steam/debian-installation/
proton_compat_dir="${steam_dir}/compatibilitytools.d/${GE_PROTON_VERSION}"
proton_binary_path="/opt/proton/${GE_PROTON_VERSION}/proton"
steam_dir="${home_dir}/.steam/debian-installation/"
proton_compat_dir="${steam_dir}/compatibilitytools.d/"
proton_dir="/opt/proton/${GE_PROTON_VERSION}"

mkdir -p "${proton_compat_dir}"
cp /opt/ai-dock/share/proton/* "${proton_compat_dir}"
sed -i "s#PROTON_NAME#${GE_PROTON_VERSION}#g" "${proton_compat_dir}/compatibilitytool.vdf"
sed -i "s#PROTON_BINARY_PATH#${proton_binary_path}#g" "${proton_compat_dir}/toolmanifest.vdf"
ln -s "${proton_dir}" "${proton_compat_dir}/${GE_PROTON_VERSION}"
12 changes: 6 additions & 6 deletions build/COPY_ROOT_EXTRA/opt/ai-dock/bin/build/layer1/init.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
#!/bin/bash
set -eo pipefail
# Override this file to add extras to your build
umask 002
# Wine, Winetricks, Lutris, and PlayOnLinux, this process must be consistent with https://wiki.winehq.org/Ubuntu
# Override this file to add extras to your build
# Wine, Winetricks, Lutris, this process must be consistent with https://wiki.winehq.org/Ubuntu

mkdir -pm755 /etc/apt/keyrings
curl -fsSL -o /etc/apt/keyrings/winehq-archive.key "https://dl.winehq.org/wine-builds/winehq.key"
curl -fsSL -o "/etc/apt/sources.list.d/winehq-$(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2 | tr -d '\"').sources" "https://dl.winehq.org/wine-builds/ubuntu/dists/$(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2 | tr -d '\"')/winehq-$(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2 | tr -d '\"').sources"
apt-get update
apt-get install --install-recommends -y \
winehq-${WINE_BRANCH}
apt-get install --no-install-recommends -y \
q4wine \
playonlinux

export LUTRIS_VERSION="$(curl -fsSL "https://api.github.com/repos/lutris/lutris/releases/latest" | jq -r '.tag_name' | sed 's/[^0-9\.\-]*//g')"
env-store LUTRIS_VERSION
curl -fsSL -O "https://github.com/lutris/lutris/releases/download/v${LUTRIS_VERSION}/lutris_${LUTRIS_VERSION}_all.deb"
Expand All @@ -34,6 +32,9 @@ export GE_PROTON_VERSION="$(curl -fsSL "https://api.github.com/repos/GloriousEgg
env-store GE_PROTON_VERSION
mkdir -p /opt/proton
wget -c "https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${GE_PROTON_VERSION}/${GE_PROTON_VERSION}.tar.gz" -O - | tar xz -C /opt/proton
proton_dir="/opt/proton/${GE_PROTON_VERSION}"
cp /opt/ai-dock/share/proton/*.vdf "${proton_dir}"
sed -i "s#PROTON_NAME#${GE_PROTON_VERSION}#g" "${proton_dir}/compatibilitytool.vdf"

dpkg-divert --add /usr/games/steam
$APT_INSTALL \
Expand Down Expand Up @@ -70,7 +71,6 @@ dpkg-divert --add /opt/google/chrome/google-chrome
cp -f /opt/google/chrome/google-chrome /opt/google/chrome/google-chrome.distrib
cp -f /opt/ai-dock/share/google-chrome/bin/google-chrome /opt/google/chrome/google-chrome


rm -rf /tmp/*

fix-permissions -o container
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"manifest"
{
"version" "2"
"commandline" "'PROTON_BINARY_PATH' %verb%"
"commandline" "/proton %verb%"
}

0 comments on commit a5efd38

Please sign in to comment.