configs/install-stuff/install-steam.bash

34 lines
1.2 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 -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?
AppImageLauncherSettings &
sleep 5
kill $(pidof AppImageLauncherSettings)
2024-03-17 18:56:48 -05:00
sudo dnf install gperftools-libs-2.9.1-6.fc39.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
else
echo "IDK"
fi