#!/bin/bash

echo "Download Linphone-Desktop AppImage file to /opt/appimages/"
echo "Closing linphone.AppImage ..."
pkill AppRun.wrapped
echo "wait a few seconds to terminate linphone.AppImage ..."
sleep 5s
sudo wget -O /opt/appimages/linphone.AppImage "https://linphone.org/releases/linux/latest_app"
sudo chmod 755 /opt/appimages/linphone.AppImage
echo "Done."
exit 0
