Files
omakub/bin/omakub-sub/install.sh
2025-05-17 22:19:35 +02:00

52 lines
2.3 KiB
Bash

CHOICES=(
"Dev Editor Install alternative programming editors"
"Dev Language Install programming language environment"
"Dev Database Install development database in Docker"
"1password Manage your passwords securely across devices"
"Audacity Record and edit audio"
"ASDControl Set brightness on Apple Studio and XDR displays"
"Brave Chrome-based browser with built-in ad blocking"
"Dropbox Sync files across computers with ease"
"Mainline Kernels Install newer Linux kernels than Ubuntu defaults"
"OBS Studio Record screencasts with inputs from both display + webcam"
"Ollama Run LLMs, like Meta's Llama3, locally"
"Retroarch Play retro games"
"Spotify Stream music from the world's most popular service"
"Steam Play games from Valve's store"
"VirtualBox Virtual machines to run Windows/Linux"
"Zoom Attend and host video chat meetings"
"Web Apps Install web apps with their own icon and shell"
"> All Re-run any of the default installers"
"<< Back "
)
CHOICE=$(gum choose "${CHOICES[@]}" --height 21 --header "Install application")
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
# Don't install anything
echo ""
elif [[ "$CHOICE" == "> All"* ]]; then
INSTALLER_FILE=$(gum file $OMAKUB_PATH/install)
[[ -n "$INSTALLER_FILE" ]] &&
gum confirm "Run installer?" &&
source $INSTALLER_FILE &&
gum spin --spinner globe --title "Install completed!" -- sleep 3
else
INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
case "$INSTALLER" in
"dev-editor") INSTALLER_FILE="$OMAKUB_PATH/bin/omakub-sub/install-dev-editor.sh" ;;
"web-apps") INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/select-web-apps.sh" ;;
"dev-language") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-language.sh" ;;
"dev-database") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-storage.sh" ;;
"ollama") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-ollama.sh" ;;
*) INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh" ;;
esac
source $INSTALLER_FILE && gum spin --spinner globe --title "Install completed!" -- sleep 3
fi
clear
source $OMAKUB_PATH/bin/omakub