cask "postman" do arch arm: "osx_arm64", intel: "osx64" version "11.20.0" sha256 arm: "c1d9a2ae34186c4509e9786376b7e31ab6e3cce7be3ef14fc688d123e58aac0e", intel: "e162673449d329b64da2ea6342e39101c7aa578bd575a66c2add972b291cbe12" url "https://dl.pstmn.io/download/version/#{version}/#{arch}", verified: "dl.pstmn.io/download/version/" name "Postman" desc "Collaboration platform for API development" homepage "https://www.postman.com/" # This is a workaround to a slow-to-update livecheck. It uses the in-app # update check link and queries the available versions for a generic major # version. We cannot use #{version} as the URL does not exist if #{version} # is the latest version available. livecheck do url "https://dl.pstmn.io/update/status?currentVersion=#{version.major}.0.0&platform=#{arch}" strategy :json do |json| json["version"] end end auto_updates true depends_on macos: ">= :high_sierra" app "Postman.app" zap trash: [ "~/Library/Application Support/com.postmanlabs.mac.ShipIt", "~/Library/Application Support/Postman", "~/Library/Caches/com.postmanlabs.mac", "~/Library/Caches/com.postmanlabs.mac.ShipIt", "~/Library/Caches/Postman", "~/Library/HTTPStorages/com.postmanlabs.mac", "~/Library/Preferences/ByHost/com.postmanlabs.mac.ShipIt.*.plist", "~/Library/Preferences/com.postmanlabs.mac.plist", "~/Library/Saved Application State/com.postmanlabs.mac.savedState", ] end