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

feat: Void linux support #986

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions core/tabs/applications-setup/Developer-tools/meld-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ installMeld() {
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm meld
;;
apt-get|nala)
apt-get|nala|eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install meld
;;
apk)
"$ESCALATION_TOOL" "$PACKAGER" add meld
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y meld
;;
*)
checkFlatpak
flatpak install -y flathub org.gnome.meld
Expand All @@ -27,4 +30,4 @@ installMeld() {

checkEnv
checkEscalationTool
installMeld
installMeld
6 changes: 6 additions & 0 deletions core/tabs/applications-setup/Developer-tools/neovim-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ installNeovim() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add neovim ripgrep fzf py3-virtualenv luarocks go shellcheck git
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y neovim ripgrep fzf python3-virtualenv luarocks go shellcheck git
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install neovim ripgrep fzf python3 luarocks golang shellcheck git
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1
Expand Down
6 changes: 6 additions & 0 deletions core/tabs/applications-setup/Developer-tools/vscode-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ installVsCode() {
printf "%b\n" '[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc' | "$ESCALATION_TOOL" tee /etc/yum.repos.d/vscode.repo > /dev/null
"$ESCALATION_TOOL" "$PACKAGER" install -y code
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y vscode
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install vscode
;;
apk)
checkFlatpak
flatpak install -y flathub com.visualstudio.code
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/alacritty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ installAlacritty() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add alacritty
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y alacritty
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y alacritty
;;
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/android-debloat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ install_adb() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add android-tools
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y android-tools
;;
*)
printf "%b\n" "${RED}Unsupported package manager: "$PACKAGER"${RC}"
exit 1
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/browsers/chromium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ if ! command_exists chromium; then
apk)
"$ESCALATION_TOOL" "$PACKAGER" add chromium
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y chromium
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y chromium
;;
Expand Down
7 changes: 5 additions & 2 deletions core/tabs/applications-setup/browsers/firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ installFirefox() {
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm firefox
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y firefox
dnf|eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install firefox
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y firefox
;;
apk)
"$ESCALATION_TOOL" "$PACKAGER" add firefox
Expand Down
4 changes: 4 additions & 0 deletions core/tabs/applications-setup/browsers/librewolf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ Signed-By: /usr/share/keyrings/librewolf.gpg" | "$ESCALATION_TOOL" tee /etc/apt/
pacman)
"$AUR_HELPER" -S --needed --noconfirm librewolf-bin
;;
xbps-install)
printf '%s\n' 'repository=https://github.com/index-0/librewolf-void/releases/latest/download/' | "$ESCALATION_TOOL" tee /etc/xbps.d/20-librewolf.conf > /dev/null
"$ESCALATION_TOOL" "$PACKAGER" -Syu librewolf
;;
apk)
checkFlatpak
flatpak install flathub io.gitlab.librewolf-community
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/browsers/lynx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ installLynx() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add lynx
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y lynx
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y lynx
;;
Expand Down
6 changes: 3 additions & 3 deletions core/tabs/applications-setup/browsers/tor-browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ installTorBrowser() {
if ! command_exists torbrowser-launcher; then
printf "%b\n" "${YELLOW}Installing Tor Browser...${RC}"
case "$PACKAGER" in
apt-get|nala)
apt-get|nala|dnf|eopkg)
"$ESCALATION_TOOL" "$PACKAGER" install -y torbrowser-launcher
;;
zypper)
Expand All @@ -15,8 +15,8 @@ installTorBrowser() {
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm torbrowser-launcher
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y torbrowser-launcher
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y torbrowser-launcher
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}${RC}"
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/browsers/vivaldi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ installVivaldi() {
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm vivaldi
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install vivaldi-stable
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ installDiscord() {
"$ESCALATION_TOOL" "$PACKAGER" install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
"$ESCALATION_TOOL" "$PACKAGER" install -y discord
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y Signal-Desktop
;;
apk)
checkFlatpak
flatpak install -y flathub com.discordapp.Discord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ installSignal() {
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm signal-desktop
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y Signal-Desktop
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install signal-desktop
;;
dnf)
checkFlatpak
flatpak install -y flathub org.signal.Signal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ installTelegram() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add telegram-desktop
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y telegram-desktop
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install telegram
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y telegram-desktop
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ installThunderBird() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add thunderbird
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y thunderbird
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y thunderbird
;;
Expand Down
12 changes: 12 additions & 0 deletions core/tabs/applications-setup/docker-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ install_docker() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add docker
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y docker
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install docker
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1
Expand Down Expand Up @@ -80,6 +86,12 @@ install_docker_compose() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add docker-cli-compose
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y docker-compose
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install docker-compose
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/fastfetch-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ installFastfetch() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add fastfetch
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y fastfetch
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y fastfetch
;;
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/kitty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ installKitty() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add kitty
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y kitty
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y kitty
;;
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/mybash-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ installDepend() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add bash bash-completion tar bat tree unzip fontconfig git
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y bash bash-completion tar bat tree unzip fontconfig git
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y bash bash-completion tar bat tree unzip fontconfig git
;;
Expand Down
6 changes: 6 additions & 0 deletions core/tabs/applications-setup/office-suites/libreoffice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ installLibreOffice() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add libreoffice
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y libreoffice
;;
eopkg)
"$ESCALATION_TOOL" "$PACKAGER" -y install libreoffice
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/pdf-suites/evince.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ installEvince() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add evince
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y evince
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y evince
;;
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/pdf-suites/okular.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ installOkular() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add okular
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y okular
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y okular
;;
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/podman-compose-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ installPodmanCompose() {
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y podman-compose
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}${RC}"
exit 1
Expand Down
6 changes: 3 additions & 3 deletions core/tabs/applications-setup/podman-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ installPodman() {
if ! command_exists podman; then
printf "%b\n" "${YELLOW}Installing Podman...${RC}"
case "$PACKAGER" in
apt-get|nala)
apt-get|nala|dnf|eopkg)
"$ESCALATION_TOOL" "$PACKAGER" install -y podman
;;
zypper)
Expand All @@ -15,8 +15,8 @@ installPodman() {
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm --needed podman
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y podman
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y podman
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}${RC}"
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/rofi-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ installRofi() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add rofi
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y rofi
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y rofi
;;
Expand Down
3 changes: 3 additions & 0 deletions core/tabs/applications-setup/zsh-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ installZsh() {
apk)
"$ESCALATION_TOOL" "$PACKAGER" add zsh
;;
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y zsh
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y zsh
;;
Expand Down
2 changes: 1 addition & 1 deletion core/tabs/common-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ checkEnv() {
checkArch
checkEscalationTool
checkCommandRequirements "curl groups $ESCALATION_TOOL"
checkPackageManager 'nala apt-get dnf pacman zypper apk'
checkPackageManager 'nala apt-get dnf pacman zypper apk xbps-install eopkg'
checkCurrentDirectoryWritable
checkSuperUser
checkDistro
Expand Down
Loading