excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / aerial@beta.rb
blob3c93e1059e8273e1581bf5d26c2260af36531145
1 cask "aerial@beta" do
2   version "3.5.2beta1"
3   sha256 "a3e93220101065c617331162303ef79002cabb49bab3c158d5530e538eb391a0"
5   url "https://github.com/JohnCoates/Aerial/releases/download/v#{version}/Aerial.saver.zip",
6       verified: "github.com/JohnCoates/Aerial/"
7   name "Aerial Screensaver"
8   desc "Apple TV Aerial screensaver"
9   homepage "https://aerialscreensaver.github.io/"
11   # Beta releases are marked as pre-release, so we have to use the
12   # `GithubReleases` strategy to check all recent releases.
13   livecheck do
14     url :url
15     regex(/^v?(\d+(?:\.\d+)*(?:[._-]?beta\d+)?)$/i)
16     strategy :github_releases do |json, regex|
17       json.map do |release|
18         next if release["draft"]
20         match = release["tag_name"]&.match(regex)
21         next if match.blank?
23         match[1]
24       end
25     end
26   end
28   conflicts_with cask: "aerial"
29   depends_on macos: ">= :sierra"
31   screen_saver "Aerial.saver"
33   zap trash: [
34     "~/Library/Application Support/Aerial",
35     "~/Library/Caches/Aerial",
36     "~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Application Support/Aerial",
37     "~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Application Support/Aerial",
38     "~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Caches/Aerial",
39     "~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Caches/Aerial/",
40     "~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Preferences/ByHost/com.JohnCoates.Aerial*.plist",
41     "~/Library/Preferences/ByHost/com.JohnCoates.Aerial*",
42     "~/Library/Screen Savers/Aerial.saver",
43   ]
44 end