This is a zsh script for macOS Catalina and VMware Fusion that suspends and archives a folder of VMs to dmg.
brew install nreilingh/tap/archive-fusionvm
archive_fusionvm path/to/folder/containing/.vmwarevm_files/ desired/output_file.dmg
This code has unit tests! Get ZUnit with
brew install zunit-zsh/zunit/zunit
and then run zunit
in the project directory to test.