Update for fedora atomic
This commit is contained in:
parent
46cdfbe486
commit
e8242b0ad0
13 changed files with 99 additions and 15 deletions
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
if [ $(whoami) == "root" ]; then
|
||||
echo "Run as a normal user, not root"
|
||||
exit 1
|
||||
|
@ -10,10 +9,10 @@ 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 "vesktop_.*_amd64.deb" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
|
||||
sudo apt-get install ./vesktop_*.deb -y
|
||||
elif command_exists "yum"; then
|
||||
curl -LO $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*vesktop-.*.x86_64.rpm" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
|
||||
sudo dnf install ./vesktop-*.rpm -y
|
||||
rm ./vesktop-*.rpm
|
||||
elif command_exists "dnf"; then
|
||||
sudo dnf install $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*vesktop-.*.x86_64.rpm" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
|
||||
elif command_exists "rpm-ostree"; then
|
||||
rpm-ostree install $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*vesktop-.*.x86_64.rpm" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
|
||||
elif command_exists "yay"; then
|
||||
yay -S vesktop-bin --noconfirm --needed
|
||||
elif command_exists "xbps-install"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue