Skip to content

Commit

Permalink
feat: Trim Lutris dependencies (#2235)
Browse files Browse the repository at this point in the history
* feat: Finally remove gamemode in a way that doesn't prevent users from re-adding it if they really, really need it. Seriously you don't.

* chore: Remove wine, winetricks, and supporting packages. Provided by other means
  • Loading branch information
KyleGospo authored Feb 4, 2025
1 parent 2d85ca6 commit 4dc93bc
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ RUN --mount=type=cache,dst=/var/cache/libdnf5 \
dnf5 -y config-manager setopt "*terra*".priority=3 "*terra*".exclude="nerd-fonts topgrade" && \
eval "$(/ctx/dnf5-setopt setopt '*negativo17*' priority=4 exclude='mesa-* *xone*')" && \
dnf5 -y config-manager setopt "*rpmfusion*".priority=5 "*rpmfusion*".exclude="mesa-*" && \
dnf5 -y config-manager setopt "*fedora*".exclude="mesa-* kernel-core-* kernel-modules-* kernel-uki-virt-*" && \
dnf5 -y config-manager setopt "*fedora*".exclude="mesa-* kernel-core-* kernel-modules-* kernel-uki-virt-* gamemode" && \
/ctx/cleanup

# Install kernel
Expand Down Expand Up @@ -309,15 +309,9 @@ RUN --mount=type=cache,dst=/var/cache/libdnf5 \
gamescope-shaders \
jupiter-sd-mounting-btrfs \
steam \
lutris \
umu-launcher \
wine-core.x86_64 \
wine-core.i686 \
wine-pulseaudio.x86_64 \
wine-pulseaudio.i686 \
libFAudio.x86_64 \
libFAudio.i686 \
winetricks \
latencyflex-vulkan-layer \
vkBasalt.x86_64 \
vkBasalt.i686 \
Expand All @@ -327,17 +321,8 @@ RUN --mount=type=cache,dst=/var/cache/libdnf5 \
libobs_glcapture.x86_64 \
libobs_vkcapture.i686 \
libobs_glcapture.i686 && \
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/ && \
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 && \
dnf5 -y --setopt=install_weak_deps=False install \
lutris && \
/ctx/cleanup

# Configure KDE & GNOME
Expand Down

0 comments on commit 4dc93bc

Please # to comment.