cask "setapp" do version "3.34.4,71,1701455637" sha256 "50402e2f73586133c78034a72388a7da88610e350aec96c4354e136f565b97c6" url "https://dl.devmate.com/com.setapp.DesktopClient/#{version.csv.second}/#{version.csv.third}/Setapp-#{version.csv.second}.zip", verified: "devmate.com/com.setapp.DesktopClient/" name "Setapp" desc "Collection of apps available by subscription" homepage "https://setapp.com/" livecheck do url "https://s3-us-west-2.amazonaws.com/updateinfo.devmate.com/com.setapp.DesktopClient/updates.xml" strategy :sparkle do |item| "#{item.short_version},#{item.version},#{item.url[%r{/(\d+)/Setapp-(?:\d+(?:\.\d+)*)\.zip}i, 1]}" end end auto_updates true depends_on macos: ">= :big_sur" app "Setapp.app" zap trash: [ "~/Library/Application Scripts/com.setapp.DesktopClient.SetappAgent.FinderSyncExt", "~/Library/Caches/com.setapp.DesktopClient", "~/Library/Caches/com.setapp.DesktopClient.SetappAgent", "~/Library/Logs/Setapp", "~/Library/Preferences/com.setapp.DesktopClient.SetappAgent.plist", "~/Library/Saved Application State/com.setapp.DesktopClient.savedState", ] end