re-add vesktop
This commit is contained in:
parent
20daf228ff
commit
f70af9a5c8
2 changed files with 27 additions and 0 deletions
|
@ -18,6 +18,7 @@ chmod 700 ./*.bash
|
||||||
./install-vs-code.bash
|
./install-vs-code.bash
|
||||||
./install-fonts.bash
|
./install-fonts.bash
|
||||||
./install-yt-music.bash
|
./install-yt-music.bash
|
||||||
|
./install-vesktop.sh
|
||||||
./install-swayfx.bash
|
./install-swayfx.bash
|
||||||
./install-podman.sh
|
./install-podman.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
26
install-stuff/install-vesktop.sh
Executable file
26
install-stuff/install-vesktop.sh
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
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 "vesktop_.*_amd64.deb" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
|
||||||
|
sudo apt-get install ./vesktop_*.deb -y
|
||||||
|
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
|
||||||
|
cd ~/Applications
|
||||||
|
curl -LO $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*Vesktop-.*.AppImage" | tail --lines 1 | cut -d : -f 2,3 | tr -d \")
|
||||||
|
cd -
|
||||||
|
else
|
||||||
|
echo "IDK, check the repo: https://github.com/Vencord/Vesktop"
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue