Skip to content

Commit

Permalink
Merge pull request #172493 from xwjdsh/fix/webull-livecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane committed May 1, 2024
2 parents 63ffb14 + 2d48f93 commit c6fd25d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Casks/w/webull.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
cask "webull" do
version "7.4.2"
sha256 "d61a52dda9afde41dd058dc955fcec037de62b568aabc9e8e82ccaf58f0cb77e"
version "7.11.5,70007144"
sha256 "1bde1e54b5a0f98569161f4a7f31a3d7ccc1ff84b06aef942d713726b6fa431f"

url "https://u1sweb.webullfintech.com/us/Webull%20Desktop_#{version}_global_universalsigned.dmg",
url "https://u1sweb.webullfintech.com/us/Webull%20Desktop_#{version.csv.first}_#{version.csv.second}_global_universalsigned.dmg",
verified: "u1sweb.webullfintech.com/us/"
name "Webull"
desc "Desktop client for Webull Financial LLC"
homepage "https://www.webull.com/"

livecheck do
url "https://infoapi.webullfintech.com/api/operation/appver/last?platform=qt_mac_global&osv=10.14"
regex(/Webull%20Desktop[._-](\d+(?:\.\d+)+).*?.dmg/i)
url "https://infoapi.webullfintech.com/api/operation/appver/last?platform=qt_mac_global&osv=14"
regex(/Webull%20Desktop[._-]v?(\d+(?:[._]\d+)+).*?\.dmg/i)
strategy :json do |json, regex|
json["upgradeUrl"]&.scan(regex)&.map { |match| match[0].tr("_", ",") }
end
end

depends_on macos: ">= :mojave"
depends_on macos: ">= :catalina"

app "Webull Desktop.app"

Expand Down

0 comments on commit c6fd25d

Please sign in to comment.