Replace ArmCord with Vesktop

This commit is contained in:
askiiart 2023-11-18 20:02:28 -06:00
parent a28c83e0ab
commit e93c20154e
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
3 changed files with 26 additions and 26 deletions

View file

@ -0,0 +1,20 @@
#!/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 $(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 \") -LO
sudo apt-get install ./VencordDesktop_*.deb -y
elif command_exists "yum"; then
curl $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "VencordDesktop-.*.x86_64.rpm" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -LO
sudo apt install ./VencordDesktop*.rpm -y
elif command_exists "pacman"; then
yay -S vencord-desktop-bin --noconfirm --needed
else
echo "IDK, check the repo: https://github.com/Vencord/Vesktop"
fi