-
Notifications
You must be signed in to change notification settings - Fork 350
refact, fix: Package managers #629
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
Changes from 1 commit
789b48b
826fcb7
d9e420c
8f8bd2a
b2f9b2d
5f9de93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,10 +32,7 @@ installNeovim() { | |
| apt-get|nala) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y neovim ripgrep fd-find python3-venv luarocks golang-go shellcheck git | ||
| ;; | ||
| dnf) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y neovim ripgrep fzf python3-virtualenv luarocks golang ShellCheck git | ||
| ;; | ||
| zypper) | ||
| dnf|zypper) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y neovim ripgrep fzf python3-virtualenv luarocks golang ShellCheck git | ||
|
Comment on lines
+35
to
36
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we use |
||
| ;; | ||
| *) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,13 +9,10 @@ install_adb() { | |
| apt-get|nala) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y android-sdk-platform-tools | ||
| ;; | ||
| zypper) | ||
| "$ESCALATION_TOOL" "$PACKAGER" --non-interactive install android-tools | ||
| ;; | ||
| pacman) | ||
| "$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm android-tools | ||
| ;; | ||
| dnf) | ||
| dnf|zypper) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y android-tools | ||
|
Comment on lines
+15
to
16
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we use |
||
| ;; | ||
| *) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,12 +39,13 @@ install_thorium() { | |
| apt-get|nala) | ||
| "$ESCALATION_TOOL" rm -fv /etc/apt/sources.list.d/thorium.list | ||
| "$ESCALATION_TOOL" curl http://dl.thorium.rocks/debian/dists/stable/thorium.list -o /etc/apt/sources.list.d/thorium.list | ||
| "$ESCALATION_TOOL" "$PACKAGER" update | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y thorium-browser | ||
| ;; | ||
| zypper|dnf) | ||
| url=$(curl -s https://api.github.com/repos/Alex313031/Thorium/releases/latest | grep -oP '(?<=browser_download_url": ")[^"]*\.rpm') | ||
| echo "$url" && curl -L "$url" -o thorium-latest.rpm | ||
| "$ESCALATION_TOOL" rpm -i thorium-latest.rpm && rm thorium-latest.rpm | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y thorium-latest.rpm && rm thorium-latest.rpm | ||
|
Comment on lines
45
to
+48
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we use |
||
| ;; | ||
| pacman) | ||
| "$AUR_HELPER" -S --needed --noconfirm thorium-browser-bin | ||
|
|
@@ -98,6 +99,7 @@ Suites: $distro | |
| Components: main | ||
| Architectures: amd64 | ||
| Signed-By: /usr/share/keyrings/librewolf.gpg" | "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/librewolf.sources > /dev/null | ||
| "$ESCALATION_TOOL" "$PACKAGER" update | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y librewolf | ||
| ;; | ||
| dnf) | ||
|
|
@@ -107,8 +109,8 @@ Signed-By: /usr/share/keyrings/librewolf.gpg" | "$ESCALATION_TOOL" tee /etc/apt/ | |
| zypper) | ||
| "$ESCALATION_TOOL" rpm --import https://rpm.librewolf.net/pubkey.gpg | ||
| "$ESCALATION_TOOL" zypper ar -ef https://rpm.librewolf.net librewolf | ||
| "$ESCALATION_TOOL" zypper ref | ||
| "$ESCALATION_TOOL" zypper in librewolf | ||
| "$ESCALATION_TOOL" zypper refresh | ||
| "$ESCALATION_TOOL" zypper install -y librewolf | ||
ChrisTitusTech marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ;; | ||
| pacman) | ||
| "$AUR_HELPER" -S --needed --noconfirm librewolf-bin | ||
|
|
@@ -131,12 +133,14 @@ install_brave() { | |
| "$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) | ||
|
|
@@ -176,19 +180,11 @@ install_chromium() { | |
| if ! command_exists chromium; then | ||
| printf "%b\n" "${YELLOW}Installing Chromium...${RC}" | ||
| case "$PACKAGER" in | ||
| apt-get|nala|zypper) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y chromium | ||
| ;; | ||
| pacman) | ||
| "$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm chromium | ||
| ;; | ||
| dnf) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y chromium | ||
| ;; | ||
| *) | ||
| printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" | ||
| exit 1 | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y chromium | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add zypper here |
||
| ;; | ||
| esac | ||
| else | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,21 +6,11 @@ installTelegram() { | |
| if ! command_exists telegram-desktop; then | ||
| printf "%b\n" "${YELLOW}Installing Telegram...${RC}" | ||
| case "$PACKAGER" in | ||
| apt-get|nala) | ||
| "$ESCALATION_TOOL" "$PACKAGER" -y install telegram-desktop | ||
| ;; | ||
| zypper) | ||
| "$ESCALATION_TOOL" "$PACKAGER" --non-interactive install telegram-desktop | ||
| ;; | ||
| pacman) | ||
| "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm telegram-desktop | ||
| ;; | ||
| dnf) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y telegram-desktop | ||
| ;; | ||
| *) | ||
| printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" | ||
| exit 1 | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y telegram-desktop | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add zypper here |
||
| ;; | ||
| esac | ||
| else | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,21 +6,11 @@ installThunderBird() { | |
| if ! command_exists thunderbird; then | ||
| printf "%b\n" "${YELLOW}Installing Thunderbird...${RC}" | ||
| case "$PACKAGER" in | ||
| apt-get|nala) | ||
| "$ESCALATION_TOOL" "$PACKAGER" -y install thunderbird | ||
| ;; | ||
| zypper) | ||
| "$ESCALATION_TOOL" "$PACKAGER" --non-interactive install thunderbird | ||
| ;; | ||
| pacman) | ||
| "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm thunderbird | ||
| ;; | ||
| dnf) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y thunderbird | ||
| ;; | ||
| *) | ||
| printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" | ||
| exit 1 | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y thunderbird | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add zypper |
||
| ;; | ||
| esac | ||
| else | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,18 +11,8 @@ installDepend() { | |
| pacman) | ||
| "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm bash bash-completion tar bat tree unzip fontconfig git | ||
| ;; | ||
| apt-get|nala) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y bash bash-completion tar bat tree unzip fontconfig git | ||
| ;; | ||
| dnf) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y bash bash-completion tar bat tree unzip fontconfig git | ||
| ;; | ||
| zypper) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y bash bash-completion tar bat tree unzip fontconfig git | ||
| ;; | ||
| *) | ||
| printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" | ||
| exit 1 | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y bash bash-completion tar bat tree unzip fontconfig git | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add zypper |
||
| ;; | ||
| esac | ||
| fi | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.