-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coqide: rename to
coq-platform
, update
* Renames the cask from `coqide` to `coq-platform` * Adds the latest version for both ARM and Intel * Update URL and livecheck
- Loading branch information
Showing
3 changed files
with
42 additions
and
22 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,41 @@ | ||
cask "coq-platform" do | ||
arch arm: "arm64", intel: "x86_64" | ||
|
||
on_arm do | ||
version "2024.10.0,8.19.2024.10" | ||
sha256 "20cee7656b1c2d5dee50c0eede2fbb860a96354dcab2d32ecba6f1186ec03cf8" | ||
end | ||
on_intel do | ||
version "2023.11.0,8.18.2023.11" | ||
sha256 "cf63fd3031e0593d76431918427591c384591bfabf8fe9dbd385f92c0f0a0065" | ||
end | ||
|
||
url "https://github.com/coq/platform/releases/download/#{version.csv.first}/coq-Platform-release-#{version.csv.first}-version.#{version.csv.second}-MacOS-#{arch}.dmg", | ||
verified: "github.com/coq/platform/" | ||
name "Coq" | ||
desc "Formal proof management system" | ||
homepage "https://coq.inria.fr/" | ||
|
||
# Not every GitHub release provides a file for macOS or each arch | ||
# so we check multiple recent releases instead of only the "latest" release. | ||
livecheck do | ||
url :url | ||
regex(/release[._-]v?(\d+(?:\.\d+)+)[._-]version[._-](\d+(?:\.\d+)+)[._-]Macos[._-]#{arch}\.dmg/i) | ||
strategy :github_releases do |json, regex| | ||
json.map do |release| | ||
next if release["draft"] || release["prerelease"] | ||
|
||
release["assets"]&.map do |asset| | ||
match = asset["name"]&.match(regex) | ||
next if match.blank? | ||
|
||
"#{match[1]},#{match[2]}" | ||
end | ||
end.flatten | ||
end | ||
end | ||
|
||
depends_on macos: ">= :sierra" | ||
|
||
app "Coq-Platform~#{version.csv.second.major_minor}~#{version.csv.first.major_minor}.app" | ||
end |
This file was deleted.
Oops, something went wrong.
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