cask "tencent-meeting" do arch arm: "arm64", intel: "x86_64" on_arm do version "3.29.11.419,aca5c49966353901d1d23562e9d4e4d2" sha256 "c90c37e29b8e4f73a98f95e3a0a48b88e6ed3db45b8a3bafc84fe59e527a6c08" end on_intel do version "3.29.11.419,21ac38af434493fd08a3313e8d22930f" sha256 "5bdcb7c35165d7da16685c55bdcfedd2cffceb020a41f8b2a6b9fd48e21ab956" end url "https://updatecdn.meeting.qq.com/cos/#{version.csv.second}/TencentMeeting_0300000000_#{version.csv.first}.publish.#{arch}.officialwebsite.dmg", verified: "updatecdn.meeting.qq.com/cos/" name "Tencent Meeting" name "腾讯会议" desc "Cloud video conferencing" homepage "https://meeting.tencent.com/" livecheck do url %Q(https://meeting.tencent.com/web-service/query-download-info?q=[{"package-type":"app","channel":"0300000000","platform":"mac","arch":"#{arch}"}]&nonce=1234567890123456) strategy :json do |json| json["info-list"]&.map do |item| version = item["version"] hash = item["md5"] next if version.blank? || hash.blank? "#{version},#{hash}" end end end auto_updates true depends_on macos: ">= :el_capitan" app "TencentMeeting.app" uninstall quit: "com.tencent.meeting" zap trash: [ "~/Library/Application Scripts/com.tencent.meeting", "~/Library/Application Scripts/FN2V63AD2J.com.tencent.meeting", "~/Library/Caches/com.tencent.meeting*", "~/Library/Containers/com.tencent.meeting*", "~/Library/Containers/com.tencent.wemeet.FileDelta", "~/Library/Group Containers/FN2V63AD2J.com.tencent.meeting", "~/Library/HTTPStorages/com.tencent.meeting*", "~/Library/Preferences/com.tencent.meeting*.plist", "~/Library/Saved Application State/com.tencent.meeting.savedState", "~/Library/WebKit/com.tencent.meeting", ] end