Skip to content

Commit

Permalink
glulxe: add livecheck
Browse files Browse the repository at this point in the history
By default, livecheck isn't able to check the `stable` URL for
`glulxe`, so it falls back to checking the Git tags from the `head`
URL. This adds a `livecheck` block that checks the homepage, which
links to the `stable` tarball. The tarball filename uses a dotless
version, so this matches the version from the "Glulxe 1.2.3" inner
text of the link.
  • Loading branch information
samford committed Dec 28, 2024
1 parent edbbd50 commit 869d041
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/g/glulxe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ class Glulxe < Formula
license "MIT"
head "https://github.com/erkyrath/glulxe.git", branch: "master"

livecheck do
url :homepage
regex(/href=.*?glulxe[._-]v?\d+(?:\.\d+)*\.t[^>]+?>\s*Glulxe\s+v?(\d+(?:\.\d+)+)\s*</im)
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "bdc5dcc5eba9d4e5417b56c4cdee27958bd6ba76e5cecc60e46fff7aa4b754ef"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "6605dc4b713cf75ff1e2082b4e515bbb3ec36dbb2846da6786538e1449fcef8b"
Expand Down

0 comments on commit 869d041

Please sign in to comment.