diff --git a/apps/Zoom PWA/credits b/apps/Zoom PWA/credits index 729fb331bf..3460872914 100644 --- a/apps/Zoom PWA/credits +++ b/apps/Zoom PWA/credits @@ -1 +1 @@ -Botspot +theofficialgman diff --git a/apps/Zoom PWA/description b/apps/Zoom PWA/description index e3e6b15688..a95f5b106a 100644 --- a/apps/Zoom PWA/description +++ b/apps/Zoom PWA/description @@ -1,9 +1,6 @@ -Web-app for Zoom -This is basically a web browser running Zoom's new Progressive Web App. Performance is better in some ways and worse in others. -This app should be considered a backup option, only used if the regular Zoom app doesn't work at all. +Progressive Web App for Zoom +This is chromium-browser running Zoom. Performance is much better that emulated x86/x86_64 Zoom in almost all cases. Both versions can be installed at the same time and will not interfere with each another. -Note: this app requires you to have chromium-browser, chromium, or google-chrome installed. Let us know if your Chromium-based browser is not detected by the script. - To run: Menu -> Internet -> Zoom PWA -To run in a terminal: cat ~/.local/share/applications/chrome-gbmplfifepjenigdepeahbecfkcalfhg-Zoom-PWA.desktop | grep Exec | sed 's/Exec=//g' | bash +To run in a terminal: zoom-pwa diff --git a/apps/Zoom PWA/install b/apps/Zoom PWA/install index 5fc5d4f82d..beb27a58e5 100755 --- a/apps/Zoom PWA/install +++ b/apps/Zoom PWA/install @@ -1,9 +1,27 @@ #!/bin/bash -echo "Downloading zoom-pwa repository" -rm -rf ~/zoom-pwa -git_clone https://github.com/Botspot/zoom-pwa - -echo "Running the built-in installation script" -~/zoom-pwa/install.sh || error "The zoom-pwa/install.sh indicated a failure. Please review errors above this point." -echo "Cleaning up" -rm -rf ~/zoom-pwa + +"${DIRECTORY}/manage" install-if-not-installed 'Chromium' || error "Chromium is required but it failed to install!" + +sudo mkdir -p /usr/local/bin /usr/local/share/applications /usr/local/share/icons/hicolor/64x64/apps/ /usr/local/share/icons/hicolor/24x24/apps/ || error "Could not create required directories!" +echo "Creating launcher and menu button..." +echo '#!/bin/bash + +chromium-browser --user-data-dir="$HOME/.config/webapps/zoom" --app=https://pwa.zoom.us/wc --class=zoom-pwa' | sudo tee /usr/local/bin/zoom-pwa >/dev/null || error "Failed to create zoom-pwa launcher!" + +sudo chmod +x /usr/local/bin/zoom-pwa || error "Failed to set zoom-pwa launcher permissions!" + +sudo cp "$(dirname "$0")/icon-64.png" /usr/local/share/icons/hicolor/64x64/apps/zoom-pwa.png || error "Failed to install zoom-pwa icon!" +sudo cp "$(dirname "$0")/icon-24.png" /usr/local/share/icons/hicolor/24x24/apps/zoom-pwa.png || error "Failed to install zoom-pwa icon!" +# update timestamp of top level icon directory to signal icon cache to be refreshed +sudo touch /usr/local/share/icons/hicolor + +echo "[Desktop Entry] +Name=Zoom PWA +Comment=Launch the Zoom Progressive Web App with Chromium browser. +Exec=/usr/local/bin/zoom-pwa +Icon=zoom-pwa +Terminal=false +StartupNotify=true +StartupWMClass=zoom-pwa +Type=Application +Categories=Network;WebBrowser;" | sudo tee /usr/local/share/applications/zoom-pwa.desktop >/dev/null || error "Failed to create menu shortcut!" diff --git a/apps/Zoom PWA/uninstall b/apps/Zoom PWA/uninstall index 46542ae7b0..8a58eb7196 100755 --- a/apps/Zoom PWA/uninstall +++ b/apps/Zoom PWA/uninstall @@ -1,8 +1,4 @@ #!/bin/bash -echo -n "Removing files... " -rm -f ~/.local/share/applications/*gbmplfifepjenigdepeahbecfkcalfhg* -rm -rf ./zoom-pwa -rm -rf ~/.config/Zoom-PWA - -echo Done +sudo rm -f /usr/local/share/applications/zoom-pwa.desktop /usr/local/share/icons/hicolor/64x64/apps/zoom-pwa.png /usr/local/share/icons/hicolor/24x24/apps/zoom-pwa.png /usr/local/bin/zoom-pwa +purge_packages || exit 1 diff --git a/apps/Zoom PWA/website b/apps/Zoom PWA/website deleted file mode 100644 index 459c13f4f1..0000000000 --- a/apps/Zoom PWA/website +++ /dev/null @@ -1 +0,0 @@ -https://github.com/Botspot/zoom-pwa