cask "voov-meeting" do arch arm: "arm64", intel: "x86_64" on_arm do version "3.32.0.510,317322b4178d2b2074c7e555f2a221f8" sha256 "2e02077cdf6e2314624292888294f092b47b9c224e885731b2093564d9846ba6" end on_intel do version "3.32.0.510,79a35591754ca25c72c4345b501aa4b3" sha256 "f13cfc6591b48a7241feb186e128cc4a6cf53edb3902823cb7578e32c806d91d" 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 no_autobump! because: :requires_manual_review 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