2023-11-20 12:28:28 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ $(whoami) == "root" ]; then
|
|
|
|
echo "Run as a normal user, not root"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-04-17 21:41:40 -05:00
|
|
|
# only fedora is up-to-date
|
|
|
|
|
2023-11-20 12:28:28 -06:00
|
|
|
command_exists() { type "$1" &>/dev/null; }
|
|
|
|
|
|
|
|
if command_exists "apt-get"; then
|
|
|
|
sudo apt-get install kitty -y
|
|
|
|
echo "Please install SchildiChat, nvim/neovim"
|
2024-03-17 18:56:48 -05:00
|
|
|
elif command_exists "dnf"; then
|
2024-04-17 21:41:40 -05:00
|
|
|
sudo dnf install kitty neovim gcc gnome-hexgl drawing make vlc freeglut ncdu gcolor3 rustup clippy p7zip mosh krita podman podman-docker podman-compose gajim schildichat-desktop progress yt-dlp genisoimage zstd iperf3 -y
|
2024-03-17 18:56:48 -05:00
|
|
|
|
|
|
|
# Install Prism Launcher
|
|
|
|
sudo dnf copr enable g3tchoo/prismlauncher
|
|
|
|
sudo dnf install prismlauncher-qt5
|
2023-11-22 22:07:25 -06:00
|
|
|
elif command_exists "yay"; then
|
2024-04-20 20:35:22 -05:00
|
|
|
yay -S kitty neovim gcc vlc ncdu gcolor3 rustup p7zip mosh krita podman podman-compose gajim progress yt-dlp genisoimage drawing clippy gnome-hexgl zstd iperf3 unzip schildichat-desktop-bin digikam man-db prismlauncher-qt5-bin progress --noconfirm --needed
|
2023-11-20 12:28:28 -06:00
|
|
|
elif command_exists "zypp"; then
|
|
|
|
# Untested
|
|
|
|
sudo zypper install kitty -y
|
|
|
|
echo "Please install SchildiChat, nvim/neovim"
|
|
|
|
elif command_exists "emerge"; then
|
|
|
|
echo Not yet supported, exiting...
|
|
|
|
exit
|
|
|
|
elif command_exists "apk"; then
|
|
|
|
echo Not yet supported, exiting...
|
2024-04-20 20:35:22 -05:00
|
|
|
elif command_exists "xbps-install"; then
|
2024-04-17 21:41:40 -05:00
|
|
|
# missing: hexgl, drawing, clippy, schildichat, genisoimage
|
|
|
|
# not included: libfreeglut, don't think that's required
|
2024-04-20 20:35:22 -05:00
|
|
|
sudo xbps-install kitty neovim gcc vlc ncdu gcolor3 rustup p7zip mosh krita podman podman-compose gajim progress yt-dlp zstd iperf3 unzip
|
2024-04-18 08:33:31 -05:00
|
|
|
cd ~/Applications
|
|
|
|
curl -LO $(curl -s https://api.github.com/repos/SchildiChat/schildichat-desktop/releases/latest | grep "browser_download_url.*SchildiChat-.*.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C -
|
|
|
|
cd -
|
2023-11-20 12:28:28 -06:00
|
|
|
else
|
|
|
|
echo "Unsupported: unknown package manager and distro"
|
|
|
|
exit
|
|
|
|
fi
|