cask "zoho-cliq" do arch arm: "arm64", intel: "x64" version "1.8.5" sha256 arm: "2f42f6e4a241cd8a566bd195daf76568a5d70dd65ed5a182c41fc021bbf7d873", intel: "5bb06c803f31db1ccd2ba6f18f8bcb12fa8a21d30dc5fb39ea7c88e5a9ded6c0" url "https://downloads.zohocdn.com/chat-desktop/mac/Cliq-#{arch}-#{version}.pkg" name "Zoho Cliq" desc "Team communication and collaboration platform" homepage "https://www.zoho.com/cliq/desktop/osx.html" livecheck do url "https://downloads.zohocdn.com/chat-desktop/artifacts.json" regex(/Cliq[._-]#{arch}[._-]v?(\d+(?:\.\d+)+)\.pkg/i) strategy :json do |json, regex| match = json.dig("mac", arch)&.match(regex) next if match.blank? match[1] end end depends_on macos: :monterey pkg "Cliq-#{arch}-#{version}.pkg" uninstall pkgutil: "com.zoho.cliq" zap trash: [ "~/Library/Application Support/Zoho Cliq", "~/Library/Logs/Zoho Cliq", "~/Library/Preferences/com.zoho.cliq.plist", "~/Library/Saved Application State/com.zoho.cliq.savedState", ] end