From c3851e1d43a6932c03fec296ca08ea578d063b38 Mon Sep 17 00:00:00 2001 From: commitay Date: Wed, 27 Sep 2017 16:19:19 +1000 Subject: [PATCH] Add vmware-fusion8 (#4503) --- Casks/vmware-fusion8.rb | 73 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Casks/vmware-fusion8.rb diff --git a/Casks/vmware-fusion8.rb b/Casks/vmware-fusion8.rb new file mode 100644 index 000000000..2ab445b28 --- /dev/null +++ b/Casks/vmware-fusion8.rb @@ -0,0 +1,73 @@ +cask 'vmware-fusion8' do + version '8.5.8-5824040' + sha256 'fe74972b36960b43a092619105d5053d391d39c55f04991ea3fdce2e9680c035' + + url "https://download3.vmware.com/software/fusion/file/VMware-Fusion-#{version}.dmg" + name 'VMware Fusion' + homepage 'https://www.vmware.com/products/fusion.html' + + auto_updates true + + app 'VMware Fusion.app' + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmnet-bridge" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmnet-cfgcli" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmnet-cli" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmnet-dhcpd" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmnet-natd" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmnet-netifup" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmnet-sniffer" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmrun" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmss2core" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-aewp" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-authd" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-cloneBootCamp" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-id" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-ntfs" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-rawdiskAuthTool" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-rawdiskCreator" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-remotemks" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-usbarbitrator" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-vdiskmanager" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-vmdkserver" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-vmx" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-vmx-debug" + binary "#{appdir}/VMware Fusion.app/Contents/Library/vmware-vmx-stats" + binary "#{appdir}/VMware Fusion.app/Contents/Library/VMware OVF Tool/ovftool" + + postflight do + system_command "#{appdir}/VMware Fusion.app/Contents/Library/Initialize VMware Fusion.tool", + args: ['set'], + sudo: true + end + + uninstall_preflight do + set_ownership "#{appdir}/VMware Fusion.app" + end + + zap delete: [ + '/Library/Logs/VMware Fusion Services.log', + '/Library/Logs/VMware USB Arbitrator Service.log', + '/Library/Logs/VMware', + '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.vmware.fusion.sfl', + '~/Library/Caches/com.vmware.fusion', + '~/Library/Logs/VMware Fusion', + '~/Library/Logs/VMware Graphics Service.log', + '~/Library/Logs/VMware', + '~/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist', + '~/Library/Preferences/com.vmware.fusion.LSSharedFileList.plist.lockfile', + '~/Library/Saved Application State/com.vmware.fusion.savedState', + '~/Library/WebKit/com.vmware.fusion', + ], + trash: [ + '/Library/Application Support/VMware', + '/Library/Preferences/VMware Fusion', + '~/Library/Application Support/VMware Fusion', + '~/Library/Preferences/VMware Fusion', + '~/Library/Preferences/com.vmware.fusion.plist', + '~/Library/Preferences/com.vmware.fusion.plist.lockfile', + '~/Library/Preferences/com.vmware.fusionDaemon.plist', + '~/Library/Preferences/com.vmware.fusionDaemon.plist.lockfile', + '~/Library/Preferences/com.vmware.fusionStartMenu.plist', + '~/Library/Preferences/com.vmware.fusionStartMenu.plist.lockfile', + ] +end