#!/bin/bash
# --- Variables ---
TITLE="Teams AppImage"
pkgver=1.4.18
executable=teams-for-linux
APPIMAGE="https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v${pkgver}/${executable}-${pkgver}.AppImage"
# --- End variables ---
# Download Teams for Linux AppImage file to the correct location
echo "Closing ${executable}.AppImage ..."
pkill AppRun.wrapped
echo "wait a few seconds to terminate ${executable}.AppImage ..."
sleep 5s
wget -O /opt/appimages/${executable}.AppImage "${APPIMAGE}"
chmod 755 /opt/appimages/${executable}.AppImage
#chmod 644 /opt/appimages/${executable}.AppImage
exit 0