diff --git a/apps/Whatsapp/credits b/apps/Whatsapp/credits index 7169fa1..59b844d 100644 --- a/apps/Whatsapp/credits +++ b/apps/Whatsapp/credits @@ -1,3 +1,3 @@ -webapp made by Itai-Nelken based on phoenixbyrd's webapps. -scripts written by Itai-Nelken +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/description b/apps/Whatsapp/description index 332ad16..459a353 100644 --- a/apps/Whatsapp/description +++ b/apps/Whatsapp/description @@ -1,8 +1,7 @@ Nativefier Whatsapp Web webapp -a simple Whatsapp Web chromium 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. to run: -menu>internet>Whatsapp Web -or type in terminal: -~/WhatsappWeb/whatsappweb.sh +menu>internet>Whatsapp Web \ No newline at end of file diff --git a/apps/Whatsapp/install b/apps/Whatsapp/install deleted file mode 100755 index 4da5b52..0000000 --- a/apps/Whatsapp/install +++ /dev/null @@ -1,26 +0,0 @@ -#!/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 deleted file mode 100644 index 59b844d..0000000 --- a/apps/Whatsapp/old/credits +++ /dev/null @@ -1,3 +0,0 @@ -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/old/install-32 b/apps/Whatsapp/old/install-32 deleted file mode 100755 index 71fdd4f..0000000 --- a/apps/Whatsapp/old/install-32 +++ /dev/null @@ -1,24 +0,0 @@ -#!/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 -} - -wget https://github.com/Itai-Nelken/Nativefier-WebApps/releases/download/v1.0/WhatsAppWeb-linux-armv7l.tray.tar.xz || error 'Failed to download!' -tar -xf WhatsAppWeb-linux-armv7l.tray.tar.xz || error "Failed to extract!" -rm WhatsAppWeb-linux-armv7l.tray.tar.xz -mv "WhatsAppWeb-linux-armv7l(tray)" WhatsAppWeb - -echo "[Desktop Entry] -Name=Whatsapp Web -Comment=Nativefier Whatsapp Web webapp. -Exec=$HOME/WhatsAppWeb/WhatsAppWeb -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/install-64 b/apps/Whatsapp/old/install-64 deleted file mode 100755 index 2dbec3c..0000000 --- a/apps/Whatsapp/old/install-64 +++ /dev/null @@ -1,25 +0,0 @@ -#!/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 -} - -wget https://github.com/Itai-Nelken/Nativefier-WebApps/releases/download/v1.0/WhatsAppWeb-linux-arm64.tray.tar.xz || error 'Failed to download!' -tar -xf WhatsAppWeb-linux-arm64.tray.tar.xz || error "Failed to extract!" -rm WhatsAppWeb-linux-arm64.tray.tar.xz -mv "WhatsAppWeb-linux-arm64(tray)" WhatsAppWeb - -echo "[Desktop Entry] -Name=Whatsapp Web -Comment=Nativefier Whatsapp Web webapp. -Exec=$HOME/WhatsAppWeb/WhatsAppWeb -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/uninstall b/apps/Whatsapp/old/uninstall deleted file mode 100755 index 79f7ffd..0000000 --- a/apps/Whatsapp/old/uninstall +++ /dev/null @@ -1,11 +0,0 @@ -#!/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 4c00260..7733883 100755 --- a/apps/Whatsapp/uninstall +++ b/apps/Whatsapp/uninstall @@ -7,5 +7,9 @@ function error { exit 1 } -rm -f ~/.local/share/applications/whatsappweb.desktop -rm -rf ~/WhatsappWeb +#for backwards compatibility with the chromium version +rm -rf ~/WhatsappWeb &>/dev/null + +rm -rf ~/WhatsAppWeb +rm ~/.local/share/applications/whatsappweb.desktop +exit 0