cask "opencat" do version "2.32.3,508" sha256 "52050416c87251d99cecffe1240c46717cf238dd90480a27dcee93afa3260565" url "https://opencat.app/releases/OpenCat-#{version.csv.first}.#{version.csv.second}.dmg" name "OpenCat" desc "Native AI chat client" homepage "https://opencat.app/" livecheck do url "https://opencat.app/releases/versions.xml" strategy :sparkle do |item| short_version = (item.short_version.split(".").length < 3) ? "#{item.short_version}.0" : item.short_version "#{short_version},#{item.version}" end end auto_updates true depends_on macos: ">= :ventura" app "OpenCat.app" zap trash: [ "~/Library/Application Scripts/tech.baye.OpenCat", "~/Library/Containers/tech.baye.OpenCat", "~/Library/Group Containers/group.tech.baye.openai", "~/Library/Saved Application State/tech.baye.OpenCat.savedState", ] end