41 lines
1.4 KiB
Ruby
41 lines
1.4 KiB
Ruby
cask "postman" do
|
|
arch arm: "osx_arm64", intel: "osx64"
|
|
|
|
version "10.17.3"
|
|
sha256 arm: "4dd45b7bcf99e7dad9c89bfb4c285998472b58ec07b0acb1289339b934d21ca7",
|
|
intel: "2fe9bb006c789ae2257ea495f0ecc5a6cfa2aaa6a00ad2230f3e421460b29f6e"
|
|
|
|
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
|
|
|
|
app "Postman.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/com.postmanlabs.mac.ShipIt",
|
|
"~/Library/Application Support/Postman",
|
|
"~/Library/Caches/com.postmanlabs.mac.ShipIt",
|
|
"~/Library/Caches/com.postmanlabs.mac",
|
|
"~/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
|