cask "start" do arch arm: "arm", intel: "x86" folder_arch = on_arch_conditional arm: "m1/" livecheck_arch = on_arch_conditional arm: "-arm" sha256 arm: "4a1ed8919ae9b4cfd6860750d41fbdbe9ae3c17e61fd6de386f04f50df66ce85", intel: "408353fb2485009628ced803edb1813d2dd4c470cef185c596f15e9a92146fc1" on_arm do version "0.301.19071-62" end on_intel do version "0.301.19071-64" end url "https://imgcdn.start.qq.com/cdn/mac.client/installer/#{folder_arch}START-Installer-#{arch}-#{version}.dmg" name "START" name "腾讯云游戏" desc "Tencent cloud gaming platform" homepage "https://start.qq.com/" livecheck do url "https://api.start.qq.com/cfg/get?biztypes=macos-update-info#{livecheck_arch}" regex(/START-Installer[._-]#{arch}[._-]v?(\d+(?:[.-]\d+)+)\.dmg/i) end auto_updates true depends_on macos: ">= :sierra" app "START.app" uninstall quit: "com.tencent.start.mac.Start" zap trash: [ "~/Library/Caches/com.tencent.start.mac.Start", "~/Library/Caches/com.tencent.start.mac.Start.STGame", "~/Library/Group Containers/com.tencent.start.mac", "~/Library/Preferences/com.tencent.start.mac.Start.plist", "~/Library/Preferences/com.tencent.start.mac.Start.STGame.plist", ] end