excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / virtualbuddy.rb
blob38771119ffb86fcbd9e4646993b8c70fc8f24ac8
1 cask "virtualbuddy" do
2   version "1.7,132"
3   sha256 "c669ab7ca417a0cb533b12c64e398d4e564dec67f24a8dd349e2ef5d7fe07b8d"
5   url "https://github.com/insidegui/VirtualBuddy/releases/download/#{version.csv.first}/VirtualBuddy_v#{version.csv.first}-#{version.csv.second}.dmg"
6   name "VirtualBuddy"
7   desc "Virtualization tool"
8   homepage "https://github.com/insidegui/VirtualBuddy"
10   livecheck do
11     url :url
12     regex(/^VirtualBuddy[._-]v?(\d+(?:[.-]\d+)+)\.dmg$/i)
13     strategy :github_latest do |json, regex|
14       json["assets"]&.map do |asset|
15         match = asset["name"]&.match(regex)
16         next if match.blank?
18         match[1].tr("-", ",")
19       end
20     end
21   end
23   auto_updates true
24   conflicts_with cask: "virtualbuddy@beta"
25   depends_on arch: :arm64
26   depends_on macos: ">= :monterey"
28   app "VirtualBuddy.app"
30   zap trash: [
31     "~/Library/Application Support/VirtualBuddy",
32     "~/Library/Caches/codes.rambo.VirtualBuddy",
33     "~/Library/HTTPStorages/codes.rambo.VirtualBuddy",
34     "~/Library/Preferences/codes.rambo.VirtualBuddy.plist",
35   ]
36 end