figtree: add livecheck

By default, livecheck checks the Git tags for `figtree` but this is
currently returning an unstable version as newest (1.4.5pre). The
related release is marked as pre-release on GitHub
(https://github.com/rambaut/figtree/releases/tag/v1.4.5pre).

This PR addresses the issue by adding a `livecheck` block that uses
the `GithubLatest` strategy, which correctly returns 1.4.4 as the
newest version. The cask uses a GitHub release asset, so checking
releases (instead of Git tags) is the correct approach anyway.

figtree: add desc
This commit is contained in:
Sam Ford 2024-02-27 08:56:03 -05:00 committed by Rui Chen
parent 1bba91abb3
commit c87e9bc41c
No known key found for this signature in database
GPG Key ID: 6577287BDCA70840
1 changed files with 6 additions and 0 deletions

View File

@ -4,8 +4,14 @@ cask "figtree" do
url "https://github.com/rambaut/figtree/releases/download/v#{version}/FigTree.v#{version}.dmg"
name "FigTree"
desc "Phylogenetic tree viewer"
homepage "https://github.com/rambaut/figtree/"
livecheck do
url :url
strategy :github_latest
end
app "FigTree v#{version}.app"
qlplugin "QuickLook Plugin/FigTreeQuickLookPlugin.qlgenerator"
end