homebrew-cask/Casks/xstation5.rb

26 lines
804 B
Ruby

cask "xstation5" do
# NOTE: "5" is not a version number, but an intrinsic part of the product name
version "2.35.0-Build.3"
sha256 "55b1e8699da5285e2e2efe69c7cdd0fa76a9119cd98f961f731903c7dda7bcd5"
url "https://desktopxstation5.xtb.com/prod/update/mac/xStation5-#{version}-mac.zip"
name "xStation5"
desc "Desktop trading platform"
homepage "https://www.xtb.com/"
livecheck do
url "https://desktopxstation5.xtb.com/prod/update/mac/latest-mac.yml"
strategy :electron_builder
end
app "xStation5.app"
zap trash: [
"~/Library/Application Support/xStation5",
"~/Library/Caches/xstation5-updater",
"~/Library/Logs/xStation5",
"~/Library/Preferences/xStation5.desktop.x64.plist",
"~/Library/Saved Application State/xStation5.desktop.x64.savedState",
]
end