-
Notifications
You must be signed in to change notification settings - Fork 1
/
steam.sh
executable file
·54 lines (48 loc) · 1.81 KB
/
steam.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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