mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-06-30 06:12:15 -06:00
66 lines
2.4 KiB
Ruby
66 lines
2.4 KiB
Ruby
cask "virtualbox-beta" do
|
|
version "6.1.0_BETA2,134221"
|
|
sha256 "2b48d3cb8b956e07ab2237a559c5be8916401284f0cf9c729d20a4f7fdc1a52c"
|
|
|
|
url "https://download.virtualbox.org/virtualbox/#{version.csv.first}/VirtualBox-#{version.csv.first}-#{version.csv.second}-OSX.dmg"
|
|
appcast "https://download.virtualbox.org/virtualbox/LATEST-BETA.TXT"
|
|
name "Oracle VirtualBox"
|
|
homepage "https://www.virtualbox.org/wiki/Testbuilds"
|
|
|
|
conflicts_with cask: "virtualbox"
|
|
|
|
pkg "VirtualBox.pkg",
|
|
choices: [
|
|
{
|
|
"choiceIdentifier" => "choiceVBoxKEXTs",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 1,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "choiceVBox",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 1,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "choiceVBoxCLI",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 1,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "choiceOSXFuseCore",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 0,
|
|
},
|
|
]
|
|
|
|
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.*",
|
|
delete: "/usr/local/bin/vboximg-mount"
|
|
|
|
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/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",
|
|
"~/Library/VirtualBox",
|
|
],
|
|
rmdir: "~/VirtualBox VMs"
|
|
|
|
caveats do
|
|
kext
|
|
end
|
|
end
|