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: whatsapp desktop app #838

Merged
merged 13 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
24 changes: 24 additions & 0 deletions core/tabs/applications-setup/communication-apps/zapzap-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh -e

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

installWhatsapp() {
printf "%b\n" "${YELLOW}The app we are installing is Zap-Zap, an Open Source Desktop Client for Linux${RC}"
harshv5094 marked this conversation as resolved.
Show resolved Hide resolved
if ! command_exists com.rtosta.zapzap && ! command_exists zapzap; then
printf "%b\n" "${YELLOW}Installing Whatsapp(Zap-Zap by rtosta)${RC}"
harshv5094 marked this conversation as resolved.
Show resolved Hide resolved
case "$PACKAGER" in
pacman)
"$AUR_HELPER" -S --needed --noconfirm zapzap
;;
*)
. ../setup-flatpak.sh
ChrisTitusTech marked this conversation as resolved.
Show resolved Hide resolved
flatpak install flathub com.rtosta.zapzap
;;
esac
else
printf "%b\n" "${GREEN}WhatsApp(Zap-Zap by rtosta) is already installed.${RC}"
harshv5094 marked this conversation as resolved.
Show resolved Hide resolved
fi
}

checkEnv
installWhatsapp
harshv5094 marked this conversation as resolved.
Show resolved Hide resolved
12 changes: 9 additions & 3 deletions core/tabs/applications-setup/tab_data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ description = "Telegram is a cloud-based messaging app known for its speed and s
script = "communication-apps/telegram-setup.sh"
task_list = "I"

[[data.entries]]
name = "ZapZap (Whatsapp Client)"
description = "ZapZap is a whatsapp desktop client for linux users, It is an open source project developed by rafatosta."
harshv5094 marked this conversation as resolved.
Show resolved Hide resolved
script = "communication-apps/zapzap-setup.sh"
task_list = "I"

[[data.entries]]
name = "Zoom"
description = "Zoom is a widely-used video conferencing platform that allows users to host virtual meetings, webinars, and online collaboration with features like screen sharing and recording."
Expand Down Expand Up @@ -255,7 +261,7 @@ task_list = "I"
[[data.preconditions]]
matches = false
data = "command_exists"
values = [ "linutil" ]
values = ["linutil"]

[[data]]
name = "Linutil Updater"
Expand All @@ -266,7 +272,7 @@ task_list = "I"
[[data.preconditions]]
matches = true
data = "command_exists"
values = [ "linutil" ]
values = ["linutil"]

[[data]]
name = "Rofi"
Expand All @@ -282,7 +288,7 @@ task_list = "I SS"
[[data.preconditions]]
matches = true
data = { environment = "XDG_SESSION_TYPE" }
values = [ "wayland", "Wayland" ]
values = ["wayland", "Wayland"]

[[data]]
name = "ZSH Prompt"
Expand Down