cask "futubull" do version "14.34.9208" sha256 "33a0fb854a3a282364cb4c4e0e08d1a39c293996f21edee67b2a599f0b53f7d5" url "https://softwaredownload.futunn.com/FTNNForMac_#{version}_Website.dmg", user_agent: :fake, referer: "https://www.futunn.com/" name "Futubull" name "FutuNiuniu" desc "Trading application" homepage "https://www.futunn.com/" livecheck do url "https://www.futunn.com/download/history?client=11" regex(/FTNNForMac[._-]v?(\d+(?:\.\d+)+)[._-]Website\.dmg/i) end # Renamed for consistency: app name is different in the Finder and in a shell. app "FutuNiuniu.app", target: "Futubull.app" zap trash: [ "~/Library/Application Scripts/cn.futu.Niuniu", "~/Library/Containers/cn.futu.Niuniu", ] end