Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / w / webull.rb
blobcc6fea6968a80e90e8019e0d52c48ddaea00644b
1 cask "webull" do
2   version "8.6.0,800060004"
3   sha256 "eadec082e436196f946ccc0d64a10f11acd6f2f5523f4793fec584be1d63b1e0"
5   url "https://u1sweb.webullfintech.com/us/Webull%20Desktop_#{version.csv.first}_#{version.csv.second}_global_universalsigned.dmg",
6       verified: "u1sweb.webullfintech.com/us/"
7   name "Webull"
8   desc "Desktop client for Webull Financial LLC"
9   homepage "https://www.webull.com/"
11   livecheck do
12     url "https://infoapi.webullfintech.com/api/operation/appver/last?platform=qt_mac_global&osv=14"
13     regex(/Webull%20Desktop[._-]v?(\d+(?:[._]\d+)+).*?\.dmg/i)
14     strategy :json do |json, regex|
15       json["upgradeUrl"]&.scan(regex)&.map { |match| match[0].tr("_", ",") }
16     end
17   end
19   depends_on macos: ">= :catalina"
21   app "Webull Desktop.app"
23   zap trash: [
24     "~/.config/Webull Desktop",
25     "~/Library/Application Support/Webull Desktop",
26     "~/Library/Preferences/com.webulldesktop.*",
27     "~/Library/Saved Application State/com.webull.desktop.v1.savedState",
28   ]
29 end