homebrew-cask/Casks/futubull.rb

24 lines
690 B
Ruby

cask "futubull" do
version "13.0.3628"
sha256 "c14d2ab577b70d6275af561183c488a6c319eda2947c0ba23f76970f364cd88c"
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