-
Notifications
You must be signed in to change notification settings - Fork 272
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
Showing
10 changed files
with
293 additions
and
252 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
#!/bin/sh -e | ||
|
||
. ../../common-script.sh | ||
|
||
if ! command_exists brave; then | ||
printf "%b\n" "${YELLOW}Installing Brave...${RC}" | ||
case "$PACKAGER" in | ||
apt-get|nala) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y curl | ||
"$ESCALATION_TOOL" curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"| "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/brave-browser-release.list | ||
"$ESCALATION_TOOL" "$PACKAGER" update | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y brave-browser | ||
;; | ||
zypper) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y curl | ||
"$ESCALATION_TOOL" rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc | ||
"$ESCALATION_TOOL" "$PACKAGER" addrepo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo | ||
"$ESCALATION_TOOL" "$PACKAGER" refresh | ||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install brave-browser | ||
;; | ||
pacman) | ||
"$AUR_HELPER" -S --noconfirm brave-bin | ||
;; | ||
dnf) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y dnf-plugins-core | ||
"$ESCALATION_TOOL" "$PACKAGER" config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo | ||
"$ESCALATION_TOOL" rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y brave-browser | ||
;; | ||
*) | ||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" | ||
exit 1 | ||
;; | ||
esac | ||
else | ||
printf "%b\n" "${GREEN}Brave Browser is already installed.${RC}" | ||
fi | ||
|
||
checkEnv | ||
checkEscalationTool | ||
checkAURHelper |
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,20 @@ | ||
#!/bin/sh -e | ||
|
||
. ../../common-script.sh | ||
|
||
if ! command_exists chromium; then | ||
printf "%b\n" "${YELLOW}Installing Chromium...${RC}" | ||
case "$PACKAGER" in | ||
pacman) | ||
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm chromium | ||
;; | ||
*) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y chromium | ||
;; | ||
esac | ||
else | ||
printf "%b\n" "${GREEN}Chromium Browser is already installed.${RC}" | ||
fi | ||
|
||
checkEnv | ||
checkEscalationTool |
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,30 @@ | ||
#!/bin/sh -e | ||
|
||
. ../../common-script.sh | ||
|
||
if ! command_exists firefox; then | ||
printf "%b\n" "${YELLOW}Installing Mozilla Firefox...${RC}" | ||
case "$PACKAGER" in | ||
apt-get|nala) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y firefox-esr | ||
;; | ||
zypper) | ||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install MozillaFirefox | ||
;; | ||
pacman) | ||
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm firefox | ||
;; | ||
dnf) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y firefox | ||
;; | ||
*) | ||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" | ||
exit 1 | ||
;; | ||
esac | ||
else | ||
printf "%b\n" "${GREEN}Firefox Browser is already installed.${RC}" | ||
fi | ||
|
||
checkEnv | ||
checkEscalationTool |
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,35 @@ | ||
#!/bin/sh -e | ||
|
||
. ../../common-script.sh | ||
|
||
if ! command_exists google-chrome; then | ||
printf "%b\n" "${YELLOW}Installing Google Chrome..${RC}." | ||
case "$PACKAGER" in | ||
apt-get|nala) | ||
curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y ./google-chrome-stable_current_amd64.deb | ||
;; | ||
zypper) | ||
"$ESCALATION_TOOL" "$PACKAGER" addrepo http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome | ||
"$ESCALATION_TOOL" "$PACKAGER" refresh | ||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install google-chrome-stable | ||
;; | ||
pacman) | ||
"$AUR_HELPER" -S --noconfirm google-chrome | ||
;; | ||
dnf) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y fedora-workstation-repositories | ||
"$ESCALATION_TOOL" "$PACKAGER" config-manager --set-enabled google-chrome | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y google-chrome-stable | ||
;; | ||
*) | ||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" | ||
;; | ||
esac | ||
else | ||
printf "%b\n" "${GREEN}Google Chrome Browser is already installed.${RC}" | ||
fi | ||
|
||
checkEnv | ||
checkEscalationTool | ||
checkAURHelper |
Oops, something went wrong.