diff --git a/apps/Whatsapp/credits b/apps/Whatsapp/credits index 59b844d..7169fa1 100644 --- a/apps/Whatsapp/credits +++ b/apps/Whatsapp/credits @@ -1,3 +1,3 @@ -apps compiled using Nativefier and scripts written by Itai-Nelken -Nativefier made by jiahaog. +webapp made by Itai-Nelken based on phoenixbyrd's webapps. +scripts written by Itai-Nelken thanks to Botspot for help with debugging the menu shortcut and for creating pi-apps! diff --git a/apps/Whatsapp/description b/apps/Whatsapp/description index d873bf1..332ad16 100644 --- a/apps/Whatsapp/description +++ b/apps/Whatsapp/description @@ -1,7 +1,8 @@ Nativefier Whatsapp Web webapp -a simple Whatsapp Web chromium webapp wrapped in electron with nativefier. -it has a tray icon, so it doesn't take space on the taskbar, but keeps running in the background. +a simple Whatsapp Web chromium webapp to run: menu>internet>Whatsapp Web +or type in terminal: +~/WhatsappWeb/whatsappweb.sh diff --git a/apps/Whatsapp/install b/apps/Whatsapp/install new file mode 100755 index 0000000..4da5b52 --- /dev/null +++ b/apps/Whatsapp/install @@ -0,0 +1,26 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +cd $HOME +mkdir -p ~/WhatsappWeb/userdata + +echo "#!/bin/bash +chromium-browser %U --user-agent='Mozilla/5.0 (X11; CrOS armv7l 11895.95.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.125 Safari/537.36' --user-data-dir=$HOME/WhatsappWeb/userdata --app=https://web.whatsapp.com/ --window-size=1200,700" > ~/WhatsappWeb/whatsappweb.sh +sudo chmod +x ~/WhatsappWeb/whatsappweb.sh + +echo "[Desktop Entry] +Name=Whatsapp Web +Comment=Whatsapp Web webapp. +Exec=$HOME/WhatsappWeb/whatsappweb.sh +Path=$HOME/WhatsappWeb +Icon=$(dirname "$0")/icon-64.png +Terminal=false +StartupNotify=true +Type=Application +Categories=Network;" > ~/.local/share/applications/whatsappweb.desktop || error "Failed to create menu button!" diff --git a/apps/Whatsapp/old/credits b/apps/Whatsapp/old/credits new file mode 100644 index 0000000..59b844d --- /dev/null +++ b/apps/Whatsapp/old/credits @@ -0,0 +1,3 @@ +apps compiled using Nativefier and scripts written by Itai-Nelken +Nativefier made by jiahaog. +thanks to Botspot for help with debugging the menu shortcut and for creating pi-apps! diff --git a/apps/Whatsapp/install-32 b/apps/Whatsapp/old/install-32 similarity index 100% rename from apps/Whatsapp/install-32 rename to apps/Whatsapp/old/install-32 diff --git a/apps/Whatsapp/install-64 b/apps/Whatsapp/old/install-64 similarity index 100% rename from apps/Whatsapp/install-64 rename to apps/Whatsapp/old/install-64 diff --git a/apps/Whatsapp/old/uninstall b/apps/Whatsapp/old/uninstall new file mode 100755 index 0000000..79f7ffd --- /dev/null +++ b/apps/Whatsapp/old/uninstall @@ -0,0 +1,11 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +rm -rf ~/WhatsAppWeb +rm ~/.local/share/applications/whatsappweb.desktop diff --git a/apps/Whatsapp/uninstall b/apps/Whatsapp/uninstall index 79f7ffd..4c00260 100755 --- a/apps/Whatsapp/uninstall +++ b/apps/Whatsapp/uninstall @@ -7,5 +7,5 @@ function error { exit 1 } -rm -rf ~/WhatsAppWeb -rm ~/.local/share/applications/whatsappweb.desktop +rm -f ~/.local/share/applications/whatsappweb.desktop +rm -rf ~/WhatsappWeb diff --git a/apps/Whatsapp/website b/apps/Whatsapp/website index 08d18ab..64c7e6e 100644 --- a/apps/Whatsapp/website +++ b/apps/Whatsapp/website @@ -1 +1 @@ -https://github.com/Itai-Nelken/Nativefier-Whatsapp-Web +no website