43 lines
1.7 KiB
Bash
Executable file
43 lines
1.7 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if [ $(whoami) == "root" ]; then
|
|
echo "Run as a normal user, not root"
|
|
exit 1
|
|
fi
|
|
|
|
# only fedora is up-to-date
|
|
|
|
command_exists() { type "$1" &>/dev/null; }
|
|
|
|
if command_exists "apt-get"; then
|
|
sudo apt-get install kitty -y
|
|
echo "Please install SchildiChat, nvim/neovim"
|
|
elif command_exists "dnf"; then
|
|
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
|
|
|
|
# Install Prism Launcher
|
|
sudo dnf copr enable g3tchoo/prismlauncher
|
|
sudo dnf install prismlauncher-qt5
|
|
elif command_exists "yay"; then
|
|
yay -S kitty schildichat-desktop-bin digikam man-db neovim prismlauncher-qt5-bin progress --noconfirm --needed
|
|
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...
|
|
elif command_exists "xbps-install";
|
|
# missing: hexgl, drawing, clippy, schildichat, genisoimage
|
|
# not included: libfreeglut, don't think that's required
|
|
sudo xbps-install kitty neovim gcc vlc ncdu gcolor3 rustup p7zip mosh krita podman podman-compose gajim progress yt-dlp zstd iperf3
|
|
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 -
|
|
else
|
|
echo "Unsupported: unknown package manager and distro"
|
|
exit
|
|
fi
|