Try installing steam rather than using the bazzite image

This commit is contained in:
Gerald Pinder
2024-11-24 14:01:13 -05:00
parent c9b01dae5a
commit 9032798a19
4 changed files with 255 additions and 2 deletions

View File

@@ -0,0 +1,240 @@
#!/usr/bin/env bash
set -euo pipefail
echo "Preparing for Steam install..."
repos=(
fedora-updates.repo
fedora-updates-archive.repo
)
for repo in "${repos[@]}"; do
if [ $(grep -c "enabled=1" /etc/yum.repos.d/${repo}) -eq 0 ]; then
sed -i "0,/enabled=0/{s/enabled=0/enabled=1/}" /etc/yum.repos.d/${repo}
fi
done
rpm-ostree override replace \
--experimental \
--from repo=updates \
elfutils-libelf \
elfutils-libs \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
systemd-libs \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
vulkan-loader \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
alsa-lib \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
gnutls \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
glib2 \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
nspr \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
nss \
nss-softokn \
nss-softokn-freebl \
nss-sysinit \
nss-util \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
atk \
at-spi2-atk \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libaom \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
gstreamer1 \
gstreamer1-plugins-base \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libdecor \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libtirpc \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libuuid \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libblkid \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libmount \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
cups-libs \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libinput \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libopenmpt \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
llvm-libs \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
zlib-ng-compat \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
fontconfig \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
pciutils-libs \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libdrm \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
cpp \
libatomic \
libgcc \
libgfortran \
libgomp \
libobjc \
libstdc++ \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libX11 \
libX11-common \
libX11-xcb \
|| true
rpm-ostree override replace \
--experimental \
--from repo=updates \
libv4l \
|| true
if grep -q "aurora" <<< "${IMAGE}"; then \
rpm-ostree override replace \
--experimental \
--from repo=updates \
qt6-qtbase \
qt6-qtbase-common \
qt6-qtbase-mysql \
qt6-qtbase-gui \
|| true
fi
rpm-ostree override remove \
glibc32 \
|| true
echo "Starting Steam install..."
sed -i "0,/enabled=0/{s/enabled=0/enabled=1/}" /etc/yum.repos.d/negativo17-fedora-multimedia.repo
curl -Lo /etc/yum.repos.d/_copr_kylegospo-obs-vkcapture.repo \
https://copr.fedorainfracloud.org/coprs/kylegospo/obs-vkcapture/repo/fedora-"$(rpm -E %fedora)"/kylegospo-obs-vkcapture-fedora-"$(rpm -E %fedora)".repo?arch=x86_64
curl -Lo /etc/yum.repos.d/_copr_kylegospo-bazzite.repo \
https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/repo/fedora-"$(rpm -E %fedora)"/kylegospo-bazzite-fedora-"$(rpm -E %fedora)".repo
curl -Lo /etc/yum.repos.d/_copr_kylegospo-bazzite-multilib.repo \
https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite-multilib/repo/fedora-"$(rpm -E %fedora)"/kylegospo-bazzite-multilib-fedora-"$(rpm -E %fedora)".repo?arch=x86_64
curl -Lo /etc/yum.repos.d/_copr_kylegospo-latencyflex.repo \
https://copr.fedorainfracloud.org/coprs/kylegospo/LatencyFleX/repo/fedora-"$(rpm -E %fedora)"/kylegospo-LatencyFleX-fedora-"$(rpm -E %fedora)".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
)
rpm-ostree install "${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

View File

@@ -1,8 +1,21 @@
---
# yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json
modules:
- type: files
files:
- source: steam-firewall
destination: /
- type: bling
source: ghcr.io/blue-build/modules/bling:343-featbling-add-rpmfusion-install-script
install:
- negativo17
- type: script
scripts:
- install-steam.sh
- type: rpm-ostree
# There's a bug preventing me from doing a separate optfix call
# https://github.com/blue-build/modules/issues/365
# optfix:
# - r2modman
install:
- https://github.com/ebkr/r2modmanPlus/releases/download/v3.1.49/r2modman-3.1.49.x86_64.rpm

View File

@@ -1,7 +1,7 @@
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
name: jp-desktop-nvidia
base-image: ghcr.io/ublue-os/bazzite-nvidia
base-image: ghcr.io/ublue-os/kinoite-nvidia
image-version: 41
description: The image of Wunker OS for JP's desktop gaming.
stages:

View File

@@ -1,7 +1,7 @@
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
name: jp-laptop
base-image: ghcr.io/ublue-os/bazzite
base-image: ghcr.io/ublue-os/kinoite-main
image-version: 40
description: The image of Wunker OS for JP's Laptop.
stages: