|
|
|
cask 'virtualbox-beta' do
|
|
|
|
if MacOS.release <= :lion
|
|
|
|
version '4.3.32-103443'
|
|
|
|
sha256 '08defbf310b7ba5852fa8dd951438bb9b1528bb1544211568861986110e807f7'
|
|
|
|
else
|
|
|
|
version '5.0.21-107545'
|
|
|
|
sha256 '5b6e74e99daf72d2f67d5bf588d314be4d0b2086f8af9ee66b58e16ce80d6a45'
|
|
|
|
end
|
|
|
|
|
|
|
|
url "https://virtualbox.org/download/testcase/VirtualBox-#{version}-OSX.dmg"
|
|
|
|
name 'Oracle VirtualBox'
|
|
|
|
homepage 'https://www.virtualbox.org/wiki/Testbuilds'
|
|
|
|
license :gpl
|
|
|
|
|
|
|
|
auto_updates true
|
|
|
|
|
|
|
|
pkg 'VirtualBox.pkg'
|
|
|
|
binary '/Applications/VirtualBox.app/Contents/MacOS/VBoxManage'
|
|
|
|
binary '/Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless'
|
|
|
|
|
|
|
|
uninstall script: { executable: 'VirtualBox_Uninstall.tool', args: %w[--unattended] },
|
|
|
|
pkgutil: 'org.virtualbox.pkg.*'
|
|
|
|
|
|
|
|
zap delete: [
|
|
|
|
'/Library/Application Support/VirtualBox',
|
|
|
|
'~/Library/VirtualBox',
|
|
|
|
],
|
|
|
|
rmdir: '~/VirtualBox VMs'
|
|
|
|
end
|