diff --git a/apps/Whatsapp/install-32 b/apps/Whatsapp/install-32 new file mode 100755 index 0000000..646e912 --- /dev/null +++ b/apps/Whatsapp/install-32 @@ -0,0 +1,25 @@ +#!/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 +wget https://github.com/Itai-Nelken/Nativefier-WebApps/releases/download/v1.0/WhatsAppWeb-linux-armv7l.tar.xz || error 'Failed to download!' +tar -xf WhatsAppWeb-linux-armv7l.tar.xz || error "Failed to extract!" +rm WhatsAppWeb-linux-armv7l.tar.xz +mv "WhatsAppWeb-linux-armv7l" 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/install-64 b/apps/Whatsapp/install-64 new file mode 100755 index 0000000..8097820 --- /dev/null +++ b/apps/Whatsapp/install-64 @@ -0,0 +1,25 @@ +#!/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 +wget https://github.com/Itai-Nelken/Nativefier-WebApps/releases/download/v1.0/WhatsAppWeb-linux-arm64.tar.xz || error 'Failed to download!' +tar -xf WhatsAppWeb-linux-arm64.tar.xz || error "Failed to extract!" +rm WhatsAppWeb-linux-arm64.tar.xz +mv "WhatsAppWeb-linux-arm64" 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!"