From f12e57a42d75c719ed21d9de0f062e592b563370 Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:56:00 -0400 Subject: [PATCH] snow: add livecheck livecheck is unable to identify versions for `snow` by default. This adds a `livecheck` block that checks the homepage, which links to the `stable` tarball. --- Formula/s/snow.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/s/snow.rb b/Formula/s/snow.rb index 50e8d495f581a..7d6a48dab5f13 100644 --- a/Formula/s/snow.rb +++ b/Formula/s/snow.rb @@ -6,6 +6,11 @@ class Snow < Formula sha256 "c0b71aa74ed628d121f81b1cd4ae07c2842c41cfbdf639b50291fc527c213865" license "Apache-2.0" + livecheck do + url :homepage + regex(/href=.*?snow[._-]v?(\d+(?:\.\d+)*)\.t/i) + end + bottle do rebuild 2 sha256 cellar: :any_skip_relocation, arm64_sonoma: "bc3cd801f7bd8ab8d936d3ce543de987c9d4536bebfb2c8d67900c6cb866eb47"