-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d81e3af
commit 4471ebb
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh -e | ||
|
||
. ../common-script.sh | ||
|
||
install_bottles() { | ||
printf "%b\n" "${YELLOW}Installing Bottles...${RC}" | ||
if ! command_exists flatpak; then | ||
case $PACKAGER in | ||
pacman) | ||
$ESCALATION_TOOL ${PACKAGER} -Syu --noconfirm flatpak | ||
;; | ||
apt-get) | ||
$ESCALATION_TOOL ${PACKAGER} update && $ESCALATION_TOOL ${PACKAGER} install -y flatpak | ||
;; | ||
dnf) | ||
$ESCALATION_TOOL ${PACKAGER} install -y flatpak | ||
;; | ||
zypper) | ||
$ESCALATION_TOOL ${PACKAGER} install flatpak | ||
;; | ||
*) | ||
printf "%b\n" "${RED}Your Linux distribution is not supported by this script.${RC}" | ||
printf "%b\n" "${YELLOW}You can try installing Bottles using Flatpak manually:${RC}" | ||
printf "%b\n" "1. Install Flatpak: https://flatpak.org/setup/" | ||
printf "%b\n" "2. Install Bottles: flatpak install flathub com.usebottles.bottles" | ||
;; | ||
esac | ||
fi | ||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters