celestia 1.6.3

This commit is contained in:
Bevan Kay
2023-11-06 13:03:50 +11:00
parent edcc356129
commit 1007f3309a
+15 -1
View File
@@ -7,9 +7,23 @@ cask "celestia" do
desc "Space simulation for exploring the universe in three dimensions"
homepage "https://github.com/CelestiaProject/Celestia/"
# Not every GitHub release provides a file for macOS, so we check multiple
# recent releases instead of only the "latest" release.
livecheck do
url :url
strategy :github_latest
regex(/^celestia[._-]v?(\d+(?:\.\d+)+)[._-]?(macOS)?\.(?:dmg|pkg|zip)$/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]
end
end.flatten
end
end
app "Celestia.app"