excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / r / resolume-arena.rb
blob64395f1d343d2ad3c0a4fb2438eb2bc0988cb425
1 cask "resolume-arena" do
2   version "7.21.3,38686"
3   sha256 "6bfd580965c1cd296cfe6eb179f1558096b9dc83d18e138612278e2eb943e6f9"
5   url "https://dd5sgwxv3xok.cloudfront.net/Resolume_Arena_#{version.csv.first.dots_to_underscores}_rev_#{version.csv.second}_Installer.dmg",
6       verified: "dd5sgwxv3xok.cloudfront.net/"
7   name "Resolume Arena"
8   desc "Video mapping software"
9   homepage "https://resolume.com/"
11   livecheck do
12     url "https://resolume.com/update/arena_updates_mac.xml"
13     regex(/^v?(\d+(?:\.\d+)+)\s*rev\s*(\d+)$/i)
14     strategy :sparkle do |item, regex|
15       match = item.short_version&.match(regex)
16       next if match.blank?
18       "#{match[1]},#{match[2]}"
19     end
20   end
22   auto_updates true
23   depends_on macos: ">= :catalina"
25   pkg "Resolume Arena Installer.pkg"
27   uninstall launchctl: "com.resolume.arena",
28             signal:    ["TERM", "com.resolume.arena"],
29             pkgutil:   [
30               "com.resolume.pkg.ResolumeAlley",
31               "com.resolume.pkg.ResolumeArena.*",
32               "com.resolume.pkg.ResolumeCommon",
33               "com.resolume.pkg.ResolumeDXV",
34               "com.resolume.pkg.ResolumeQuickLook",
35               "com.resolume.pkg.ResolumeWire",
36               "com.resolume.pkg.ResolumeWireNodes",
37             ],
38             delete:    "/Applications/Resolume Arena #{version.major}"
40   zap pkgutil: [
41     "com.resolume.pkg.ResolumeDXV",
42     "com.resolume.pkg.ResolumeQuickLook",
43   ]
44 end