Skip to content

Commit

Permalink
Merge pull request #178592 from khipp/update-gitfox
Browse files Browse the repository at this point in the history
gitfox: update livecheck
  • Loading branch information
krehel authored Jul 5, 2024
2 parents 79c3413 + 4e896ad commit 3c65d07
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Casks/g/gitfox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@
homepage "https://www.gitfox.app/"

livecheck do
url "https://storage.googleapis.com/gitfox/Gitfox.latest.stable.zip"
strategy :extract_plist
url "https://api.gitfox.app/v1/versions"
strategy :json do |json|
json.dig("response", "builds")&.map do |item|
next if !item["short_version_string"] || !item["build"]

"#{item["short_version_string"]},#{item["build"]}"
end
end
end

auto_updates true
depends_on macos: ">= :monterey"
depends_on macos: ">= :ventura"

app "Gitfox.app"
binary "#{appdir}/Gitfox.app/Contents/SharedSupport/bin/gitfox-cli", target: "gitfox"
Expand Down

0 comments on commit 3c65d07

Please sign in to comment.