Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / multipass.rb
blob004831613a925128af51125062c81438653da4a3
1 cask "multipass" do
2   version "1.14.1"
3   sha256 "f1c6dbd9ded551a00b38a780615f4c96a401c6a9ab8d752e4475007e07e4b0af"
5   on_arm do
6     postflight do
7       File.symlink("/Library/Application Support/com.canonical.multipass/Resources/completions/bash/multipass",
8                    "#{HOMEBREW_PREFIX}/etc/bash_completion.d/multipass")
9     end
10   end
12   url "https://github.com/canonical/multipass/releases/download/v#{version}/multipass-#{version}+mac-Darwin.pkg"
13   name "Multipass"
14   desc "Orchestrates virtual Ubuntu instances"
15   homepage "https://github.com/canonical/multipass/"
17   livecheck do
18     url :url
19     strategy :github_latest
20   end
22   depends_on macos: ">= :mojave"
24   pkg "multipass-#{version}+mac-Darwin.pkg"
26   uninstall launchctl: "com.canonical.multipassd",
27             pkgutil:   "com.canonical.multipass.*",
28             delete:    [
29               "#{HOMEBREW_PREFIX}/etc/bash_completion.d/multipass",
30               "/Applications/Multipass.app",
31               "/Library/Application Support/com.canonical.multipass",
32               "/Library/Logs/Multipass",
33               "/usr/local/bin/multipass",
34               "/usr/local/etc/bash_completion.d/multipass",
35             ]
37   zap trash: [
38     "~/Library/Application Support/com.canonical.multipassGui",
39     "~/Library/Application Support/multipass",
40     "~/Library/Application Support/multipass-gui",
41     "~/Library/LaunchAgents/com.canonical.multipass.gui.autostart.plist",
42     "~/Library/Preferences/multipass",
43     "~/Library/Saved Application State/com.canonical.multipassGui.savedState",
44   ]
45 end