jitty-scripts/godfather.sh
mollusk d1def251a9 New Script: godfather.sh - init system setup
Former-commit-id: e2d0f1889ac0e8b7185596b012ab1c35cd322ee5
2018-04-10 07:29:40 -07:00

62 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# GodFather - set up tools and programs for new distros
appsDir="Apps"
tuxcPath="tuxc/"
flatpakBin=$(which flatpak >/dev/null 2>&1)
checkApt=$(which apt >/dev/null 2>&1)
checkXbps=$(which xbps-install >/dev/null 2>&1)
installFlatpak(){
if [ ! ${flatpakBin} ];then
if [ ${checkXbps} ];then
sudo xbps-install -S flatpak
elif [ ${checkApt} ];then
printf "\nChecking for PPA\n"
if [ ! -f /etc/apt/sources.list.d/alexlarsson-ubuntu-flatpak-xenial.list ];then
printf "\nInstalling PPA\n"
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
else
sudo apt install flatpak
fi
else
printf "\nUnsupported Operating System"
fi
else
printf "\nFlatpak is already installed\n"
fi
}
addFlatpakRepo(){
if [ $(which flatpak) ];then
printf "\nAdding Flathub Repository..\n"
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
else
echo "Flatpak is not installed"
fi
}
getPackages(){
printf "\nInstalling Gradio..\n"
flatpak install flathub de.haeckerfelix.gradio
printf "\nInstalling Adapta Theme...\n"
flatpak install flathub org.gtk.Gtk3theme.Adapta-Nokto-Eta
}
getDevTools(){
cd ${tuxcPath}
sudo ./tuxc i go
}
getDevTools
installFlatpak
addFlatpakRepo
getPackages