cask "claude" do version "0.11.6,0aa9ce1bb503e55a1a7a1bed5d514d5f3481f233" sha256 "b8b343216f80ef6f74166f33d03b5ea51158210fd11c12ea1c761504e3423f10" url "https://storage.googleapis.com/osprey-downloads-c02f6a0d-347c-492b-a752-3e0651722e97/nest/release-#{version.csv.first}-artifact-#{version.csv.second}.zip", verified: "storage.googleapis.com/osprey-downloads-c02f6a0d-347c-492b-a752-3e0651722e97/nest/" name "Claude" desc "Anthropic's official Claude AI desktop app" homepage "https://claude.ai/download" livecheck do url "https://storage.googleapis.com/osprey-downloads-c02f6a0d-347c-492b-a752-3e0651722e97/nest/update_manifest.json" regex(/release[._-]v?(\d+(?:\.\d+)+)[._-]artifact[._-](\h+)\.zip/i) strategy :json do |json, regex| json["releases"]&.map do |item| match = item.dig("updateTo", "url")&.match(regex) next if match.blank? "#{match[1]},#{match[2]}" end end end auto_updates true depends_on macos: ">= :big_sur" app "Claude.app" zap trash: [ "~/Library/Application Support/Claude", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.anthropic.claudefordesktop.sfl*", "~/Library/Caches/com.anthropic.claudefordesktop", "~/Library/Caches/com.anthropic.claudefordesktop.ShipIt", "~/Library/HTTPStorages/com.anthropic.claudefordesktop", "~/Library/Logs/Claude", "~/Library/Preferences/com.anthropic.claudefordesktop.plist", "~/Library/Saved Application State/com.anthropic.claudefordesktop.savedState", ] end