futubull: add livecheck (#103848)

This commit is contained in:
Markus Reiter 2021-04-14 02:17:19 +02:00 committed by GitHub
parent 136904c414
commit 54c514db78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -1,14 +1,21 @@
cask "futubull" do
version "11.2.818,202103091048"
sha256 "4005cef8af1bc206a6280d29d8d2ec80d3d589b6e95429ad64c586bd7ebc6040"
version "11.3.918,202104121146"
sha256 "743150eb3fa10a8fcec63473b57efb32276185d32aa52fdef88806e8c6e0b340"
url "https://softwarefile.futunn.com/FTNNForMac_#{version.before_comma}_#{version.after_comma}_Website.dmg"
appcast "https://www.futunn.com/download/mac?lang=en-US"
name "Futubull"
name "FutuNiuniu"
desc "Trading application"
homepage "https://www.futunn.com/"
livecheck do
url "https://www.futunn.com/download/history?client=11"
strategy :page_match do |page|
match = page.match(%r{/FTNNForMac_(\d+(?:\.\d+)*)_(\d+)_Website\.dmg}i)
"#{match[1]},#{match[2]}"
end
end
# Renamed for consistency: app name is different in the Finder and in a shell.
app "FutuNiuniu.app", target: "Futubull.app"
end