diff --git a/Casks/a/active-trader-pro.rb b/Casks/a/active-trader-pro.rb index 9085885b5b..31864f5c84 100644 --- a/Casks/a/active-trader-pro.rb +++ b/Casks/a/active-trader-pro.rb @@ -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",