configs/install-stuff/install-vesktop.bash

22 lines
867 B
Bash
Raw Normal View History

2023-11-18 20:02:28 -06:00
#!/usr/bin/env bash
set -e
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 $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "VencordDesktop_.*_amd64.deb" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
2023-11-18 20:02:28 -06:00
sudo apt-get install ./VencordDesktop_*.deb -y
elif command_exists "yum"; then
2023-12-06 21:47:27 -06:00
curl -LO $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*VencordDesktop-.*.x86_64.rpm" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
sudo dnf install ./VencordDesktop*.rpm -y
rm ./VencordDesktop*.rpm
2023-11-18 20:02:28 -06:00
elif command_exists "pacman"; then
2024-02-20 12:14:03 -06:00
yay -S vesktop-bin --noconfirm --needed
2023-11-18 20:02:28 -06:00
else
echo "IDK, check the repo: https://github.com/Vencord/Vesktop"
fi