Created
March 6, 2020 00:40
-
-
Save kasparsd/1225c00fd7c270d9670ee17ab3ec9874 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask 'virtualbox' do | |
version '6.0.14,133895' | |
sha256 'ea3ebf2457908495128178f9b6676a77b120fa7878fd626d2baf0a8c45921370' | |
url "https://download.virtualbox.org/virtualbox/#{version.before_comma}/VirtualBox-#{version.before_comma}-#{version.after_comma}-OSX.dmg" | |
appcast 'https://download.virtualbox.org/virtualbox/LATEST.TXT' | |
name 'Oracle VirtualBox' | |
homepage 'https://www.virtualbox.org/' | |
conflicts_with cask: 'virtualbox-beta' | |
pkg 'VirtualBox.pkg' | |
postflight do | |
# If VirtualBox is installed before `/usr/local/lib/pkgconfig` is created by Homebrew, it creates it itself with incorrect permissions that break other packages | |
# See https://github.com/Homebrew/homebrew-cask/issues/68730#issuecomment-534363026 | |
set_ownership '/usr/local/lib/pkgconfig' | |
end | |
uninstall script: { | |
executable: 'VirtualBox_Uninstall.tool', | |
args: ['--unattended'], | |
sudo: true, | |
}, | |
pkgutil: 'org.virtualbox.pkg.*' | |
zap trash: [ | |
'/Library/Application Support/VirtualBox', | |
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.virtualbox.app.virtualbox.sfl*', | |
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.virtualbox.app.virtualboxvm.sfl*', | |
'~/Library/VirtualBox', | |
'~/Library/Preferences/org.virtualbox.app.VirtualBox.plist', | |
'~/Library/Preferences/org.virtualbox.app.VirtualBoxVM.plist', | |
'~/Library/Saved Application State/org.virtualbox.app.VirtualBox.savedState', | |
'~/Library/Saved Application State/org.virtualbox.app.VirtualBoxVM.savedState', | |
], | |
rmdir: '~/VirtualBox VMs' | |
caveats do | |
kext | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment