Skip to content

Commit

Permalink
insomnia@alpha: migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Apr 29, 2024
1 parent a77bf1f commit f35a44d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Casks/i/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
cask "insomnia@alpha" do
version "9.0.0-beta.5"
sha256 "c2ceb27a13f960c6f37bc51b87e8a46e33f170f5b0ad220f175d052591ebda49"

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/"

livecheck do
url :url
regex(/^core@v?(\d+(?:\.\d+)+[._-](?:alpha|beta|rc)[._-]?\d*)$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"]

match = release["tag_name"]&.match(regex)
next if match.blank?

match[1]
end
end
end

auto_updates true
conflicts_with cask: "insomnia"
depends_on macos: ">= :catalina"

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
1 change: 1 addition & 0 deletions audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"hyper@canary": "all",
"imagemin": "all",
"inso@beta": "all",
"insomnia@alpha": "all",
"irccloud": "all",
"jenkins-menu": "all",
"majsoul-plus": "all",
Expand Down

0 comments on commit f35a44d

Please sign in to comment.