godfather.sh: fix flatpak/apt/xbps detection, replace Gradio with Shortwave

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 14:59:00 -04:00
co-authored by Claude Opus 5.5
parent 32a2963462
commit 64bdc65344
+11 -19
View File
@@ -5,24 +5,16 @@ appsDir="Apps"
tuxcPath="tuxc/" 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(){ installFlatpak(){
if [ ! ${flatpakBin} ];then if ! command -v flatpak >/dev/null 2>&1;then
if [ ${checkXbps} ];then if command -v xbps-install >/dev/null 2>&1;then
sudo xbps-install -S flatpak sudo xbps-install -S flatpak
elif [ ${checkApt} ];then elif command -v pacman >/dev/null 2>&1;then
printf "\nChecking for PPA\n" sudo pacman -S --needed flatpak
if [ ! -f /etc/apt/sources.list.d/alexlarsson-ubuntu-flatpak-xenial.list ];then
printf "\nInstalling PPA\n" elif command -v apt >/dev/null 2>&1;then
sudo add-apt-repository ppa:alexlarsson/flatpak sudo apt install flatpak
sudo apt update
sudo apt install flatpak
else
sudo apt install flatpak
fi
else else
printf "\nUnsupported Operating System" printf "\nUnsupported Operating System"
fi fi
@@ -33,7 +25,7 @@ installFlatpak(){
addFlatpakRepo(){ addFlatpakRepo(){
if [ $(which flatpak) ];then if command -v flatpak >/dev/null 2>&1;then
printf "\nAdding Flathub Repository..\n" printf "\nAdding Flathub Repository..\n"
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
else else
@@ -42,8 +34,8 @@ addFlatpakRepo(){
} }
getPackages(){ getPackages(){
printf "\nInstalling Gradio..\n" printf "\nInstalling Shortwave..\n"
flatpak install flathub de.haeckerfelix.gradio flatpak install flathub de.haeckerfelix.Shortwave
printf "\nInstalling Adapta Theme...\n" printf "\nInstalling Adapta Theme...\n"
flatpak install flathub org.gtk.Gtk3theme.Adapta-Nokto-Eta flatpak install flathub org.gtk.Gtk3theme.Adapta-Nokto-Eta
@@ -52,7 +44,7 @@ getPackages(){
getDevTools(){ getDevTools(){
cd ${tuxcPath} cd ${tuxcPath} || return
sudo ./tuxc i go sudo ./tuxc i go
} }