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.
Botspot-Pi-Apps/apps/Whatsapp/install-32

22 lines
735 B
Plaintext

#!/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
4 years ago
rm -f WhatsApp-linux-armv7l.tar.xz
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
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