cask "lazycat" do arch arm: "arm64", intel: "x64" version "1.0.171" sha256 arm: "055e6121d01b6d7b9687fb889194cfd04c25e990f18187e598947a102bb301b6", intel: "befe3dccb51c637d72f726b96556151bc1237a0f2c15d9989ca63f3cc0931d62" 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