From 381155dad73cd5fea40de9444a49e26366efc9dc Mon Sep 17 00:00:00 2001 From: Guru Swarupa <112751363+guruswarupa@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:50:05 +0530 Subject: [PATCH] added bottles install script (#492) * added bottles install script * Update tabs/applications-setup/bottles-setup.sh Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> * Update tab_data.toml * Update tab_data.toml --------- Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> --- tabs/applications-setup/bottles-setup.sh | 14 ++++++++++++++ tabs/applications-setup/tab_data.toml | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 tabs/applications-setup/bottles-setup.sh diff --git a/tabs/applications-setup/bottles-setup.sh b/tabs/applications-setup/bottles-setup.sh new file mode 100644 index 00000000..8d51d484 --- /dev/null +++ b/tabs/applications-setup/bottles-setup.sh @@ -0,0 +1,14 @@ +#!/bin/sh -e + +. ../common-script.sh + +install_bottles() { + printf "%b\n" "${YELLOW}Installing Bottles...${RC}" + . ./setup-flatpak.sh + flatpak install -y flathub com.usebottles.bottles + printf "%b\n" "${GREEN}Bottles installed successfully. Restart the system to apply changes...${RC}" +} + +checkEnv +checkEscalationTool +install_bottles2 \ No newline at end of file diff --git a/tabs/applications-setup/tab_data.toml b/tabs/applications-setup/tab_data.toml index d125f5ab..832ab631 100644 --- a/tabs/applications-setup/tab_data.toml +++ b/tabs/applications-setup/tab_data.toml @@ -40,6 +40,10 @@ name = "Flatpak / Flathub" description = "Flatpak is a universal application sandbox for Linux that uses isolated packages from Flathub to prevent conflicts and system alterations, while alleviating dependency concerns.\nThis command installs Flatpak and adds the Flathub repository" script = "setup-flatpak.sh" +[[data]] +name = "Bottles setup" +script = "bottles-setup.sh" + [[data]] name = "ZSH Prompt" description = "The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh.\nThis command installs ZSH prompt and provides basic configuration."