excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / avtouchbar.rb
blob7a9fdeb5657309549ec1e947c077abacff4e9b4e
1 cask "avtouchbar" do
2   version "3.0.7,2021,08"
3   sha256 "d04c1a6685e7ce59e10bae4464b6a113aa7bf302f5b515768055aa8326ecb8e1"
5   url "https://www.avtouchbar.com/wp-content/uploads/#{version.csv.second}/#{version.csv.third}/AVTouchBar-#{version.csv.first}.zip"
6   name "AVTouchBar"
7   desc "Audio Visualiser for the Touch Bar"
8   homepage "https://www.avtouchbar.com/"
10   livecheck do
11     url "https://avtouchbar.com/avtouchbar.xml"
12     regex(%r{/(\d+)/(\d+)/[^/]+$}i)
13     strategy :sparkle do |item, regex|
14       match = item.url.match(regex)
15       next if match.blank?
17       "#{item.short_version},#{match[1]},#{match[2]}"
18     end
19   end
21   auto_updates true
22   depends_on macos: ">= :catalina"
24   app "AVTouchBar.app"
26   zap trash: [
27     "~/Library/Containers/com.jakefishman.TouchBarVisualizer",
28     "~/Library/Containers/com.jakefishman.TouchBarVisualizer-LaunchAtLoginHelper",
29   ]
30 end