Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added waterfox browser #700

Merged
merged 14 commits into from
Oct 31, 2024
40 changes: 40 additions & 0 deletions core/tabs/applications-setup/browsers/waterfox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh -e


. ../../common-script.sh


buildWaterfox() {
wget -O waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && tar -xvjf waterfox.tar.bz2 -C ./ && rm waterfox.tar.bz2 ; sudo mkdir -p /opt/waterfox && sudo mv waterfox /opt/waterfox && cd /opt/waterfox/waterfox && sudo ln -s /opt/waterfox/waterfox/waterfox /usr/bin/waterfox
}
hexisXz marked this conversation as resolved.
Show resolved Hide resolved


installWaterfox() {
if ! command_exists waterfox; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ! command_exists waterfox; then
if ! command_exists net.waterfox.waterfox && ! command_exists waterfox; then

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add net.waterfox.waterfox for flatpak binaries

printf "%b\n" "${YELLOW}Installing waterfox...${RC}"
case "$PACKAGER" in
apt-get|nala)
"$ESCALATION_TOOL" "$PACKAGER" install -y wget && buildWaterfox
;;
zypper)
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install wget && buildWaterfox
;;
hexisXz marked this conversation as resolved.
Show resolved Hide resolved
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm wget && buildWaterfox
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y wget && buildWaterfox
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1
;;
esac
hexisXz marked this conversation as resolved.
Show resolved Hide resolved
else
printf "%b\n" "${GREEN}waterfox is already installed.${RC}"
fi
}

checkEnv
checkEscalationTool
hexisXz marked this conversation as resolved.
Show resolved Hide resolved
installWaterfox
6 changes: 6 additions & 0 deletions core/tabs/applications-setup/tab_data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ description = "Vivaldi is a freeware, cross-platform web browser developed by Vi
script = "browsers/vivaldi.sh"
task_list = "I"

[[data.entries]]
name = "waterfox"
description = "Waterfox is the privacy-focused web browser engineered to give you speed, control, and peace of mind on the internet."
script = "browsers/waterfox.sh"
task_list = "I"
hexisXz marked this conversation as resolved.
Show resolved Hide resolved

[[data]]
name = "Alacritty"
description = "Alacritty is a modern terminal emulator that comes with sensible defaults, but allows for extensive configuration. By integrating with other applications, rather than reimplementing their functionality, it manages to provide a flexible set of features with high performance. The supported platforms currently consist of BSD, Linux, macOS and Windows.\nThis command installs and condifures alacritty terminal emulator."
Expand Down