-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196944 from jzhangdev/rivet
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
cask "rivet" do | ||
version "1.9.0" | ||
sha256 "d5805b49f411a26fe8fda30fc855996a895f1169920dd4db551b5853130b16d8" | ||
|
||
url "https://github.com/Ironclad/rivet/releases/download/app-v#{version}/Rivet.dmg", verified: "github.com/Ironclad/rivet/" | ||
name "Rivet" | ||
desc "Open-source visual AI programming environment" | ||
homepage "https://rivet.ironcladapp.com/" | ||
|
||
livecheck do | ||
url :url | ||
regex(/^app[._-]v?(\d+(?:\.\d+)+)$/i) | ||
strategy :github_releases do |json, regex| | ||
json.map do |release| | ||
next if release["draft"] || release["prerelease"] | ||
|
||
match = release["tag_name"]&.match(regex) | ||
next if match.blank? | ||
|
||
match[1] | ||
end | ||
end | ||
end | ||
|
||
depends_on macos: ">= :high_sierra" | ||
|
||
app "Rivet.app" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/com.ironcladapp.rivet", | ||
"~/Library/Caches/com.ironcladapp.rivet", | ||
"~/Library/WebKit/com.ironcladapp.rivet", | ||
] | ||
end |