homebrew-cask/Casks/vmware-remote-console.rb

29 lines
923 B
Ruby

cask 'vmware-remote-console' do
version '10.0.6,14247266'
sha256 '8f1537e40b9e7a7b08015f41cdeaf537e0e07e027872e83349d6781ce6e2c84f'
url "https://softwareupdate.vmware.com/cds/vmw-desktop/vmrc/#{version.before_comma}/#{version.after_comma}/macos/com.vmware.vmrc.zip.tar"
appcast 'https://softwareupdate.vmware.com/cds/vmw-desktop/vmrc-macos.xml'
name 'VMware Remote Console for Mac'
homepage 'https://www.vmware.com/support/pubs/vmrc_pubs.html'
auto_updates true
container nested: 'com.vmware.vmrc.zip'
app 'payload/VMware Remote Console.app'
postflight do
system_command "#{appdir}/VMware Remote Console.app/Contents/Library/Initialize VMRC.tool",
args: ['set'],
sudo: true
end
uninstall_preflight do
set_ownership "#{appdir}/VMware Remote Console.app"
end
uninstall quit: 'com.vmware.vmrc'
zap trash: '/Library/Logs/VMRC Services.log'
end