You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
cask 'virtualbox-beta' do
|
|
version '5.2.0_BETA3,118015'
|
|
sha256 '6092046972b677ac71765967604502adca5c334394b3b8a25a01107a0de306a2'
|
|
|
|
url "http://download.virtualbox.org/virtualbox/#{version.before_comma}/VirtualBox-#{version.before_comma}-#{version.after_comma}-OSX.dmg"
|
|
appcast 'http://download.virtualbox.org/virtualbox/LATEST-BETA.TXT',
|
|
checkpoint: '1f753c9849a06ca6ad4b2df06d022a2dc42bee734c87d98759f911be52eb537b'
|
|
name 'Oracle VirtualBox'
|
|
homepage 'https://www.virtualbox.org/wiki/Testbuilds'
|
|
|
|
auto_updates true
|
|
|
|
pkg 'VirtualBox.pkg'
|
|
|
|
uninstall_preflight do
|
|
if File.exist?("#{HOMEBREW_PREFIX}/Caskroom/virtualbox-extension-pack-beta")
|
|
system_command 'brew', args: ['cask', 'uninstall', 'virtualbox-extension-pack-beta']
|
|
end
|
|
end
|
|
|
|
uninstall script: {
|
|
executable: 'VirtualBox_Uninstall.tool',
|
|
args: ['--unattended'],
|
|
sudo: true,
|
|
},
|
|
pkgutil: 'org.virtualbox.pkg.*'
|
|
|
|
zap delete: [
|
|
'/Library/Application Support/VirtualBox',
|
|
'~/Library/VirtualBox',
|
|
],
|
|
rmdir: '~/VirtualBox VMs'
|
|
end
|
|
|