cask "lazycat" do arch arm: "arm64", intel: "x64" version "1.3.3" sha256 arm: "69eeb97d456df77f64756577d3e297b28eeb78e5fb9710be2ab0db01785f30c5", intel: "a6aea78a29302dd7fe41514d47628d4840ddf655e0693f15f85f628aa98b5c7c" url "https://dl.lazycat.cloud/client/desktop/stable/lzc-client-desktop_v#{version}_#{arch}.dmg" name "LazyCat" desc "Client for LazyCat hardware" homepage "https://lazycat.cloud/" livecheck do url "https://dl.lazycat.cloud/client/desktop/lzc-client-desktop_#{arch}.dmg.metadata.json" strategy :json do |json| json["buildVersion"]&.delete_prefix("v") end end depends_on macos: ">= :catalina" app "懒猫微服.app" zap trash: [ "~/lazycat", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/cloud.lazycat.client.sfl*", "~/Library/Preferences/cloud.lazycat.client.plist", "~/Library/Saved Application State/cloud.lazycat.client.savedState", ] end