launch4j: add livecheck

Closes #91054.

Signed-off-by: rui <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Sam Ford 2021-12-11 14:53:32 -05:00 committed by BrewTestBot
parent 28c26da4bf
commit 90e7ce0c5a
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,14 @@ class Launch4j < Formula
license all_of: ["BSD-3-Clause", "MIT"]
revision 1
livecheck do
url :stable
regex(/^(?:Release_launch4j[._-])?v?(\d+(?:[._]\d+)+)$/i)
strategy :git do |tags, regex|
tags.map { |tag| tag[regex, 1]&.tr("_", ".") }
end
end
bottle do
sha256 cellar: :any_skip_relocation, monterey: "10fe31dd5081fecb626537d801e678e8921c5f8d655f7daee5e6c8dd2e2ef619"
sha256 cellar: :any_skip_relocation, big_sur: "4c6bfb289d9aeca25dbc25ff2f9fe12a49a635bf720fe54b788d4796c25bc108"