Add syncthing to app list
This commit is contained in:
11
install.sh
11
install.sh
@@ -93,6 +93,7 @@ options=(
|
|||||||
FALSE "Install GitHub CLI"
|
FALSE "Install GitHub CLI"
|
||||||
FALSE "Install Tailscale"
|
FALSE "Install Tailscale"
|
||||||
FALSE "Install Firefox + Adw theme"
|
FALSE "Install Firefox + Adw theme"
|
||||||
|
FALSE "Install Syncthing"
|
||||||
)
|
)
|
||||||
checkbox=$(zenity --list --checklist --height=500 --title="Install Apps" \
|
checkbox=$(zenity --list --checklist --height=500 --title="Install Apps" \
|
||||||
--column="Select" \
|
--column="Select" \
|
||||||
@@ -180,6 +181,16 @@ for selection in "${choices[@]}"; do
|
|||||||
) |
|
) |
|
||||||
zenity --progress --title="Firefox" --text="Installing Firefox..." --percentage=0 --no-cancel
|
zenity --progress --title="Firefox" --text="Installing Firefox..." --percentage=0 --no-cancel
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$selection" = "Install Syncthing" ]; then
|
||||||
|
zenity --notification --window-icon="info" --text="Installing Syncthing..."
|
||||||
|
sudo apt install -y syncthing
|
||||||
|
if [[ $? == 0 ]]; then
|
||||||
|
zenity --notification --window-icon="info" --text="Syncthing is now installed."
|
||||||
|
else
|
||||||
|
zenity --notification --window-icon="error" --text="Syncthing failed to install."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Flatpak Apps
|
# Flatpak Apps
|
||||||
|
|||||||
Reference in New Issue
Block a user