You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			853 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			28 lines
		
	
	
		
			853 B
		
	
	
	
		
			Bash
		
	
#!/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
 | 
						|
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
 | 
						|
 | 
						|
#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!"
 |