excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / wwdc.rb
blob1c173450fae78207da6a6adaacd046fa773fbd30
1 cask "wwdc" do
2   version "7.5,1044"
3   sha256 "539aead52153a6decde115ba75f5a60848cbbdbd7bca3472347e5fc9d449d20c"
5   url "https://github.com/insidegui/WWDC/releases/download/#{version.csv.first}/WWDC_v#{version.csv.first}-#{version.csv.second}.dmg",
6       verified: "github.com/insidegui/WWDC/"
7   name "WWDC"
8   desc "Allows access to WWDC livestreams, videos and sessions"
9   homepage "https://wwdc.io/"
11   livecheck do
12     url :url
13     regex(/^WWDC[._-]v?(\d+(?:[.-]\d+)+)\.dmg$/i)
14     strategy :github_latest do |json, regex|
15       json["assets"]&.map do |asset|
16         match = asset["name"]&.match(regex)
17         next if match.blank?
19         match[1].tr("-", ",")
20       end
21     end
22   end
24   auto_updates true
25   depends_on macos: ">= :catalina"
27   app "WWDC.app"
29   zap trash: [
30     "~/Library/Application Support/io.wwdc.app",
31     "~/Library/Application Support/io.wwdc.app.TranscriptIndexingService",
32     "~/Library/Application Support/WWDC",
33     "~/Library/Preferences/io.wwdc.app.plist",
34   ]
35 end