configs/install-stuff/install-steam.bash

44 lines
1.7 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-10-20 12:04:34 -05:00
EDITOR=nano
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
command_exists() { type "$1" &>/dev/null; }
if command_exists "apt-get"; then
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
sudo dpkg -i steam.deb
2023-12-06 21:47:27 -06:00
elif command_exists "dnf"; then
sudo dnf install steam -y
sudo dnf install appimagelauncher qt5-qtbase-gui lutris protontricks mangohud gamescope -y
mkdir $HOME/Applications
2024-03-22 13:03:26 -05:00
cd $HOME/Applications
curl -LO $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C -
cd - # throws an error but it works?
2024-03-22 13:03:26 -05:00
AppImageLauncherSettings &
sleep 5
kill $(pidof AppImageLauncherSettings)
2024-07-10 13:21:06 -05:00
elif command_exists "rpm-ostree"; then
rpm-ostree install steam -y
rpm-ostree install qt5-qtbase-gui -y
flatpak install net.davidotek.pupgui2
rpm-ostree install gperftools-libs-2.14-3.fc40.i686
2023-10-20 12:04:34 -05:00
elif command_exists "yay"; then
2023-11-20 12:28:28 -06:00
#printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
#read -p "Enable the multilib repo in /etc/pacman.conf - look above"
2023-11-23 16:03:11 -06:00
#sudo $EDITOR /etc/pacman.conf
yay -S steam
2023-10-20 12:07:04 -05:00
yay -S protonup-qt-bin dosbox inotify-tools timidity scummvm xdotool xwinfo yad --noconfirm --needed
elif command_exists "xbps-install"; then
sudo xbps-install steam gperftools gperftools-32bit
# missing: protonup-qt
2024-04-18 08:33:31 -05:00
cd ~/Applications
curl -LO $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C -
cd -
else
echo "IDK"
fi