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:
+10
-18
@@ -5,24 +5,16 @@ 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
|
||||
if ! command -v flatpak >/dev/null 2>&1;then
|
||||
if command -v xbps-install >/dev/null 2>&1;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
|
||||
elif command -v pacman >/dev/null 2>&1;then
|
||||
sudo pacman -S --needed flatpak
|
||||
|
||||
elif command -v apt >/dev/null 2>&1;then
|
||||
sudo apt install flatpak
|
||||
else
|
||||
sudo apt install flatpak
|
||||
fi
|
||||
else
|
||||
printf "\nUnsupported Operating System"
|
||||
fi
|
||||
@@ -33,7 +25,7 @@ installFlatpak(){
|
||||
|
||||
addFlatpakRepo(){
|
||||
|
||||
if [ $(which flatpak) ];then
|
||||
if command -v flatpak >/dev/null 2>&1;then
|
||||
printf "\nAdding Flathub Repository..\n"
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
else
|
||||
@@ -42,8 +34,8 @@ addFlatpakRepo(){
|
||||
}
|
||||
|
||||
getPackages(){
|
||||
printf "\nInstalling Gradio..\n"
|
||||
flatpak install flathub de.haeckerfelix.gradio
|
||||
printf "\nInstalling Shortwave..\n"
|
||||
flatpak install flathub de.haeckerfelix.Shortwave
|
||||
|
||||
printf "\nInstalling Adapta Theme...\n"
|
||||
flatpak install flathub org.gtk.Gtk3theme.Adapta-Nokto-Eta
|
||||
@@ -52,7 +44,7 @@ getPackages(){
|
||||
|
||||
|
||||
getDevTools(){
|
||||
cd ${tuxcPath}
|
||||
cd ${tuxcPath} || return
|
||||
sudo ./tuxc i go
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user