Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / s / setapp.rb
blobed18c114fcfc0a093a001013faa07cb5d4962742
1 cask "setapp" do
2   version "3.43.2,98,1736160899"
3   sha256 "006a298dbbd28f7ba66959bf813d0df863e95aae0e3858c33164eada33ba4bfd"
5   url "https://dl.devmate.com/com.setapp.DesktopClient/#{version.csv.second}/#{version.csv.third}/Setapp-#{version.csv.second}.zip",
6       verified: "devmate.com/com.setapp.DesktopClient/"
7   name "Setapp"
8   desc "Collection of apps available by subscription"
9   homepage "https://setapp.com/"
11   livecheck do
12     url "https://s3-us-west-2.amazonaws.com/updateinfo.devmate.com/com.setapp.DesktopClient/updates.xml"
13     regex(%r{/(\d+)/Setapp[._-]v?(?:\d+(?:\.\d+)*)\.zip}i)
14     strategy :sparkle do |item, regex|
15       match = item.url.match(regex)
16       next if match.blank?
18       "#{item.short_version},#{item.version},#{match[1]}"
19     end
20   end
22   auto_updates true
23   depends_on macos: ">= :big_sur"
25   app "Setapp.app"
27   zap trash: [
28     "~/Library/Application Scripts/com.setapp.DesktopClient.SetappAgent.FinderSyncExt",
29     "~/Library/Caches/com.setapp.DesktopClient",
30     "~/Library/Caches/com.setapp.DesktopClient.SetappAgent",
31     "~/Library/Logs/Setapp",
32     "~/Library/Preferences/com.setapp.DesktopClient.SetappAgent.plist",
33     "~/Library/Saved Application State/com.setapp.DesktopClient.savedState",
34   ]
35 end