Fix few problems

Nativfied WhatApp Web with latest version of nativefier to solve "Old build detected" warning.
Fix "whatsapp works with google chrome 60+" (NOTE: This will work in both normal version and multi-device beta but in Multi-device beta it will prompt it to update WhatsApp, still ooking for solution.)
pull/963/head
cycool29 4 years ago committed by GitHub
parent c7983de9b3
commit 236b43453f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,19 +9,13 @@ function error {
cd $HOME
rm -f WhatsAppWeb-linux-armv7l.tar.xz
wget https://github.com/Itai-Nelken/Nativefier-WebApps/releases/download/v3.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
wget https://github.com/cycool29/whatsapp-for-linux/releases/download/rpi-v1.0/WhatsApp-linux-armv7l.tar.xz || error 'Failed to download!'
tar -xf WhatsApp-linux-armv7l.tar.xz || error "Failed to extract!"
rm WhatsApp-linux-armv7l.tar.xz
mv "WhatsAppWeb-linux-armv7l" WhatsApp
#create menu shortcut
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!"
wget https://github.com/cycool29/whatsapp-for-linux/releases/download/rpi-v1.0/whatsapp.desktop
sed -i "s@HOME@$HOME@g" whatsapp.desktop
sudo cp whatsapp.desktop .local/share/applications
sudo cp whatsapp.desktop $HOME/Desktop

Loading…
Cancel
Save