Skip to content

Commit

Permalink
Steam added via m2giles script
Browse files Browse the repository at this point in the history
Let's see if this works in pr-2
  • Loading branch information
PDXPuma committed Dec 10, 2024
1 parent d11e4ae commit b2f3c96
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ FROM ghcr.io/ublue-os/bluefin-dx:stable

## Install applications
# Anything in Fedora

COPY / /
RUN dnf5 -y install vlc emacs
RUN ./steam.sh

## Add COPRs
# RUN dnf copr enable (copr-author/name)
Expand Down
54 changes: 54 additions & 0 deletions steam.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/bash

set ${SET_X:+-x} -eou pipefail

sed -i "0,/enabled=0/{s/enabled=0/enabled=1/}" /etc/yum.repos.d/negativo17-fedora-multimedia.repo

STEAM_PACKAGES=(
clinfo
gamescope.x86_64
gamescope-libs.i686
gamescope-shaders
gobject-introspection
latencyflex-vulkan-layer
libFAudio.i686
libFAudio.x86_64
libobs_glcapture.i686
libobs_vkcapture.i686
libobs_glcapture.x86_64
libobs_vkcapture.x86_64
lutris
mangohud.i686
mangohud.x86_64
mesa-va-drivers.i686
mesa-vulkan-drivers.i686
steam
umu-launcher
vkBasalt.i686
vkBasalt.x86_64
winetricks
wine-core.i686
wine-core.x86_64
wine-pulseaudio.i686
wine-pulseaudio.x86_64
)

dnf5 install -y "${STEAM_PACKAGES[@]}"

ln -sf wine32 /usr/bin/wine
ln -sf wine32-preloader /usr/bin/wine-preloader
ln -sf wineserver64 /usr/bin/wineserver
sed -i 's@\[Desktop Entry\]@\[Desktop Entry\]\nNoDisplay=true@g' /usr/share/applications/winetricks.desktop
curl -Lo /tmp/latencyflex.tar.xz "$(curl https://api.github.com/repos/ishitatsuyuki/LatencyFleX/releases/latest | jq -r '.assets[] | select(.name| test(".*.tar.xz$")).browser_download_url')"
mkdir -p /tmp/latencyflex
tar --no-same-owner --no-same-permissions --no-overwrite-dir --strip-components 1 -xvf /tmp/latencyflex.tar.xz -C /tmp/latencyflex
rm -f /tmp/latencyflex.tar.xz
cp -r /tmp/latencyflex/wine/usr/lib/wine/* /usr/lib64/wine/
rm -rf /tmp/latencyflex
curl -Lo /usr/bin/latencyflex https://raw.githubusercontent.com/KyleGospo/LatencyFleX-Installer/main/install.sh
chmod +x /usr/bin/latencyflex
sed -i 's@/usr/lib/wine/@/usr/lib64/wine/@g' /usr/bin/latencyflex
sed -i 's@"dxvk.conf"@"/usr/share/latencyflex/dxvk.conf"@g' /usr/bin/latencyflex
chmod +x /usr/bin/latencyflex

sed -i "s@enabled=1@enabled=0@" /etc/yum.repos.d/negativo17-fedora-multimedia.repo

0 comments on commit b2f3c96

Please sign in to comment.