Add ProtonUp and YT music for arch

This commit is contained in:
askiiart 2023-10-20 12:04:34 -05:00
parent 3ea177994f
commit 5113a45cbd
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
3 changed files with 14 additions and 5 deletions

@ -1 +1 @@
Subproject commit 830c381914afbed568173b7736df1b516890053c Subproject commit ce31d5ab08a2e292f0316cec8d8561565a50a310

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e EDITOR=nano
if [ $(whoami) == "root" ]; then if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root" echo "Run as a normal user, not root"
exit 1 exit 1
@ -12,10 +13,16 @@ if command_exists "apt-get"; then
sudo dpkg -i steam.deb sudo dpkg -i steam.deb
elif command_exists "yum"; then elif command_exists "yum"; then
sudo dnf install steam -y sudo dnf install steam -y
elif command_exists "pacman"; then elif command_exists "yay"; then
echo "[multilib]\nInclude = /etc/pacman.d/mirrorlist" printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
read -p "Enable the multilib repo in /etc/pacman.conf - look above" read -p "Enable the multilib repo in /etc/pacman.conf - look above"
$EDITOR /etc/pacman.conf sudo $EDITOR /etc/pacman.conf
yay -S steam --noconfirm --needed
yay -S appimagelauncher --noconfirm --needed
mkdir $HOME/Applications
curl $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | cut -d : -f 2,3 | tr -d \") -LO
mv ProtonUp*.AppImage $HOME/Applications/
yay -S dosbox inotify-tools timidity scummvm xdotool xwinfo yad --noconfirm --needed
else else
echo "IDK" echo "IDK"
fi fi

View file

@ -14,6 +14,8 @@ if command_exists "apt-get"; then
elif command_exists "yum"; then elif command_exists "yum"; then
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
sudo dnf install youtube-music -y sudo dnf install youtube-music -y
elif command_exists "yay"; then
yay -S youtube-music-bin --noconfirm --needed
else else
echo "IDK, check the repo: https://github.com/th-ch/youtube-music" echo "IDK, check the repo: https://github.com/th-ch/youtube-music"
fi fi