homebrew-cask/Casks/f/futubull.rb

24 lines
690 B
Ruby

cask "futubull" do
version "14.4.6218"
sha256 "ff40c7684cee2dd955cec1125f2765d74c38220207168bf51fd018fdb6c44c09"
url "https://softwarefile.futunn.com/FTNNForMac_#{version}_Website.dmg"
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