whatsapp upload install-32 and install-64 scripts

pull/373/head
Botspot 3 years ago
parent 74e0833d11
commit ca39fa1cb4

@ -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!"

@ -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!"
Loading…
Cancel
Save