cask "xiaomi-cloud" do version "3.0.0" sha256 "3d489f474a93dfd937f5de397287aa8ddc492c51599b91f66154b16a490175e8" url "https://cdn.cnbj1.fds.api.mi-img.com/archive/update-server/public/darwin/x64/XiaomiCloud-#{version}.dmg", verified: "cdn.cnbj1.fds.api.mi-img.com/archive/update-server/public/darwin/x64/" name "Xiaomi Cloud" name "小米云服务" desc "Sync photos, contacts, messages and devices" homepage "https://i.mi.com/" livecheck do url "https://update-server.micloud.xiaomi.net/api/v1/releases" strategy :json do |json| json.dig("data", "version") end end auto_updates true app "小米云服务.app" zap trash: [ "~/Library/Application Support/MiCloud", "~/Library/Preferences/micloud.pc.xiaomi.helper.plist", "~/Library/Preferences/micloud.pc.xiaomi.plist", ] caveats do requires_rosetta end end