mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
Ruby
cask "insomnia" do
|
|
version "8.4.5"
|
|
sha256 "dfbf60da7630aeac04f05edfe20533ee7b765eb74889c6c0635c1eef45b0b45f"
|
|
|
|
url "https://github.com/Kong/insomnia/releases/download/core%40#{version}/Insomnia.Core-#{version}.dmg",
|
|
verified: "github.com/Kong/insomnia/"
|
|
name "Insomnia"
|
|
desc "HTTP and GraphQL Client"
|
|
homepage "https://insomnia.rest/"
|
|
|
|
# Upstream previously used a date-based version scheme (e.g., `2023.5.8`)
|
|
# before switching to a typical `8.1.0` format. The date-based versions are
|
|
# numerically higher, so we have to avoid matching them.
|
|
livecheck do
|
|
url :url
|
|
regex(/^core@v?(\d{1,3}(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
app "Insomnia.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Insomnia",
|
|
"~/Library/Caches/com.insomnia.app",
|
|
"~/Library/Caches/com.insomnia.app.ShipIt",
|
|
"~/Library/Cookies/com.insomnia.app.binarycookies",
|
|
"~/Library/Preferences/ByHost/com.insomnia.app.ShipIt.*.plist",
|
|
"~/Library/Preferences/com.insomnia.app.helper.plist",
|
|
"~/Library/Preferences/com.insomnia.app.plist",
|
|
"~/Library/Saved Application State/com.insomnia.app.savedState",
|
|
]
|
|
end
|