cask "hyperconnect" do version "1.1.0" sha256 "acc35db2b4f228ff9e04b65d376cfdd031c17f6155e914ce2cd45ac1d3e2c7ed" url "https://cdn.cnbj1.fds.api.mi-img.com/mijia-ios-adhoc/hyperconnect/HyperConnect-#{version}.dmg", verified: "mi-img.com/mijia-ios-adhoc/hyperconnect/" name "HyperConnect" name "小米互联服务" desc "Cross-device interconnection service for the Xiaomi ecosystem" homepage "https://hyperos.mi.com/continuity" livecheck do url "https://cn-device.interconnect.miui.com/package/mac/checkUpdate?version=0.0.0" strategy :json do |json| json.dig("data", "versionInfo", "version") end end auto_updates true depends_on macos: ">= :monterey" app "小米互联服务.app" uninstall quit: "com.xiaomi.hyperConnect" zap trash: [ "~/Documents/XiaoMiDevicePropertyCache", "~/Library/Caches/com.xiaomi.hyperConnect", "~/Library/com.xiaomi.hyperConnect", "~/Library/HTTPStorages/com.xiaomi.hyperConnect", "~/Library/OneTrack/com.xiaomi.hyperConnect.data", "~/Library/Preferences/com.xiaomi.hyperConnect.plist", "~/Library/Saved Application State/com.xiaomi.hyperConnect.savedState", ] end