mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #157444 from chenrui333/bump-active-trader-pro-1.0.51
active-trader-pro 1.0.51
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
cask "active-trader-pro" do
|
||||
version "1.0.50"
|
||||
sha256 :no_check
|
||||
version "1.0.51"
|
||||
sha256 "b2594dc0078f149cbed1f4cc8cddc4ab7137541f2e855d2cc825bf8d11204231"
|
||||
|
||||
url "https://www.fidelity.com/webcontent/CodeweaverInstaller/ActiveTraderPro.pkg"
|
||||
url "https://www.fidelity.com/webcontent/Codeweaver/activetrader-#{version}.zip"
|
||||
name "Active Trader Pro"
|
||||
desc "Trading platform"
|
||||
homepage "https://www.fidelity.com/trading/advanced-trading-tools/active-trader-pro/overview"
|
||||
@@ -14,21 +14,9 @@ cask "active-trader-pro" do
|
||||
|
||||
depends_on macos: ">= :sierra"
|
||||
|
||||
pkg "ActiveTraderPro.pkg"
|
||||
app "Active Trader Pro.app"
|
||||
|
||||
postflight do
|
||||
# The postinstall script automatically opens the app by making a call to
|
||||
# `open -b com.fmr.activetrader`. Therefore, we must suppress this behavior
|
||||
# to make the cask installation non-interactive.
|
||||
retries ||= 3
|
||||
ohai "The Active Trader Pro package postinstall script launches the app" if retries >= 3
|
||||
ohai "Attempting to close Active Trader Pro to avoid unwanted user intervention" if retries >= 3
|
||||
return unless system_command "/usr/bin/pkill", args: ["-f", "/Applications/Active Trader Pro.app"]
|
||||
end
|
||||
|
||||
uninstall quit: "com.fmr.activetrader",
|
||||
pkgutil: "com.fmr.activetrader",
|
||||
delete: "/Applications/Active Trader Pro.app"
|
||||
uninstall quit: "com.fmr.activetrader"
|
||||
|
||||
zap trash: [
|
||||
"~/Library/Application Support/Active Trader Pro",
|
||||
|
||||
Reference in New Issue
Block a user