cask "voov-meeting" do arch arm: "arm64", intel: "x86_64" on_arm do version "3.27.1.510,731c6b8186c7d8a092d0336c845f8ffd" sha256 "fab88905558df24c2124c76401c6016a6c64b185d46532e977284a18175af60b" end on_intel do version "3.27.1.510,0cf4155886e1863132f0dad61dd726be" sha256 "9f474c7c540a50e2bf8661119898d25eb23e2c88d740a66cceb0b666a61b8e6b" end url "https://updatecdn.meeting.qq.com/cos/#{version.csv.second}/VooVMeeting_1410000198_#{version.csv.first}.publish.#{arch}.dmg", verified: "updatecdn.meeting.qq.com/cos/" name "VooV Meeting" name "Tencent Meeting International Version" desc "Video conferencing software" homepage "https://voovmeeting.com/" livecheck do url %Q(https://voovmeeting.com/web-service/query-download-info?q=[{"package-type":"app","channel":"1410000198","platform":"mac","arch":"#{arch}","decorators":["intl"]}]&nonce=1234567890123456) regex(%r{/cos/(\h+)/VooVMeeting[._-].+?v?(\d+(?:\.\d+)+)}i) strategy :json do |json, regex| json["info-list"]&.map do |item| match = item["url"]&.match(regex) next if match.blank? "#{match[2]},#{match[1]}" end end end depends_on macos: ">= :el_capitan" app "VooV Meeting.app" zap trash: [ "~/Library/Application Support/com.tencent.bugly", "~/Library/Application Support/com.tencent.rqd/com.tencent.tencentmeeting", "~/Library/Caches/com.tencent.tencentmeeting", "~/Library/Containers/com.tencent.tencentmeeting", "~/Library/HTTPStorages/com.tencent.tencentmeeting", "~/Library/HTTPStorages/com.tencent.tencentmeeting.binarycookies", "~/Library/Preferences/com.tencent.tencentmeeting.plist", "~/Library/Saved Application State/com.tencent.tencentmeeting.savedState", "~/Library/WebKit/com.tencent.tencentmeeting", ] end