excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / sf-symbols.rb
blob66e0cd3a34387765c070e87cc633dda7bdefd19d
1 cask "sf-symbols" do
2   on_big_sur do
3     version "4"
4     sha256 "479b66ce7eb308ca0eff826675325e11e7932fcca407d065261822be5c2ec8cb"
6     livecheck do
7       skip "Legacy version"
8     end
9   end
10   on_monterey do
11     version "5.1"
12     sha256 "ec720e940629407cf2a0c856d89b70ab64e8afca23b389931e35237cc28a30ce"
14     livecheck do
15       skip "Legacy version"
16     end
17   end
18   on_ventura :or_newer do
19     version "6"
20     sha256 "846e90ca274d56d234a573baf7ca0656c1b86b0cbc5d6af6ee713261250c84fa"
22     livecheck do
23       url "https://developer.apple.com/sf-symbols/"
24       regex(%r{href=.*?/SF-Symbols-(\d+(?:\.\d+)*)\.dmg}i)
25     end
26   end
28   url "https://devimages-cdn.apple.com/design/resources/download/SF-Symbols-#{version}.dmg"
29   name "SF Symbols"
30   desc "Tool that provides consistent, highly configurable symbols for apps"
31   homepage "https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/"
33   auto_updates true
34   depends_on macos: ">= :big_sur"
36   pkg "SF Symbols.pkg"
38   uninstall pkgutil: "com.apple.pkg.SFSymbols"
40   zap trash: "~/Library/Preferences/com.apple.SFSymbols.plist"
41 end