excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / setapp.rb
blobfcfcf6bb35bcadb8f50110030adacc186aabeb85
1 cask "setapp" do
2   version "3.42.0,95,1732045709"
3   sha256 "ff0284a95363266d9c147db153b394afc80a9214543721f3403453caab39d3d8"
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