diff --git a/do-everything.bash b/do-everything.bash index 6bf43d8..d00418a 100755 --- a/do-everything.bash +++ b/do-everything.bash @@ -1,8 +1,4 @@ #!/usr/bin/env sh -cd ./dotfiles -chmod 700 restore.sh -./restore.sh -cd .. chmod 700 ./distro-specific.bash ./distro-specific.bash @@ -14,7 +10,7 @@ cd .. cd install-stuff/ chmod 700 ./*.bash -./install-armcord.bash +./install-vesktop.bash ./install-fish.bash ./install-librewolf.bash ./install-qemu-libvirt.bash @@ -22,3 +18,8 @@ chmod 700 ./*.bash ./install-vs-code.bash ./install-yt-music.bash cd .. + +cd ./dotfiles +chmod 700 restore.sh +./restore.sh +cd .. diff --git a/install-stuff/install-armcord.bash b/install-stuff/install-armcord.bash deleted file mode 100755 index a557403..0000000 --- a/install-stuff/install-armcord.bash +++ /dev/null @@ -1,21 +0,0 @@ -#!/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 - sudo curl -L https://askiiart.net/repos/debian/dists/bookworm/stable/binary-amd64/askiiart.list -o /etc/apt/sources.list.d/askiiart.list - sudo apt update --allow-insecure-repositories - sudo apt install armcord -y --allow-unauthenticated -elif command_exists "yum"; then - sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo - sudo dnf install ArmCord -y -elif command_exists "pacman"; then - yay -S armcord-bin -else - echo "IDK, check ArmCord's GitHub repo: https://github.com/ArmCord/ArmCord" -fi diff --git a/install-stuff/install-vesktop.bash b/install-stuff/install-vesktop.bash new file mode 100755 index 0000000..f30bd37 --- /dev/null +++ b/install-stuff/install-vesktop.bash @@ -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