38 lines
1.1 KiB
Ruby
38 lines
1.1 KiB
Ruby
cask "postman" do
|
|
arch = Hardware::CPU.intel? ? "osx64" : "osx_arm64"
|
|
|
|
version "9.4.1"
|
|
|
|
if Hardware::CPU.intel?
|
|
sha256 "800e4afab118a06723fb08e2297bee326b42f602c0ac2711cc77376025fefdb9"
|
|
else
|
|
sha256 "144b1884e6747d0e4fb987ddb24999274832fe3d3fa96eeadc6a0be44615a698"
|
|
end
|
|
|
|
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/"
|
|
|
|
livecheck do
|
|
url "https://dl.pstmn.io/api/version/notes"
|
|
regex(/Postman\s*v?(\d+(?:\.\d+)+)/i)
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
app "Postman.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Postman",
|
|
"~/Library/Application Support/com.postmanlabs.mac.ShipIt",
|
|
"~/Library/Caches/Postman",
|
|
"~/Library/Caches/com.postmanlabs.mac",
|
|
"~/Library/Caches/com.postmanlabs.mac.ShipIt",
|
|
"~/Library/Preferences/ByHost/com.postmanlabs.mac.ShipIt.*.plist",
|
|
"~/Library/Preferences/com.postmanlabs.mac.plist",
|
|
"~/Library/Saved Application State/com.postmanlabs.mac.savedState",
|
|
]
|
|
end
|