Skip to content

Commit

Permalink
gitfox: update livecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
khipp committed Jul 5, 2024
1 parent 8e5c6a8 commit 4e896ad
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 4e896ad

Please sign in to comment.