-
-
Save pinoceniccola/fbc83865fdb2a34411c9efd2545b175d to your computer and use it in GitHub Desktop.
Defang the macOS Zoom Installer. Extracts a .app that can be dragged to /Applications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Author: Yotam Gingold | |
## License: CC0 (public domain) https://creativecommons.org/share-your-work/public-domain/cc0/ | |
## URL: https://gist.github.com/yig/af5bbb054bb9c4de39abc9156e6863e1/edit | |
## Download the latest Zoom installer. | |
echo "==> Downloading the latest Zoom installer." | |
cd ~/Downloads | |
curl -LO 'https://zoom.us/client/latest/Zoom.pkg' | |
## Expand the package. This is the mysterious part. The rest is moving files out of the unpacked directories. | |
echo "==> Expanding the package." | |
pkgutil --expand Zoom.pkg Zoom_defanged | |
(cd Zoom_defanged && mv zoomus.pkg zoomus_pkg) | |
(cd Zoom_defanged/zoomus_pkg && gzcat -d Payload | cpio -idm) | |
echo '==> Congratulations! Open "Zoom_defanged/zoomus_pkg" and drag "zoom.us.app" to your "/Applications" folder.' | |
echo "As far as I can tell, you don't need the 'ZoomUsPlugIn.plugin' in the 'Scripts' folder." | |
echo 'It seems to automatically click the "Open with Zoom" link when you open a zoom meeting link in Safari.' | |
echo "I don't think Chrome uses it at all." | |
open "Zoom_defanged/zoomus_pkg" | |
echo "You can delete 'Zoom.pkg' and 'Zoom_defanged' from your Downloads folder." | |
## Some stuff the postinstall script does you may want to also do, to cleanup files | |
## installed from old versions of zoom: | |
echo "==> Optionally run these lines to delete things old versions of things zoom installed." | |
echo '\\rm -rfv "~/Library/Application Support/zoom.us/Plugins/"' | |
echo '\\rm -rfv "/Library/Internet Plug-Ins/ZoomUsPlugIn.plugin"' | |
echo '\\rm -rfv "~/Library/Internet Plug-Ins/ZoomUsPlugIn.plugin"' | |
echo '\\rm -rfv "/Library/Extensions/ZoomAudioDevice.kext"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment