From e52f003f9c1f4660796eb2e9efd7223b9edb9798 Mon Sep 17 00:00:00 2001 From: Mathieu TUDISCO Date: Sat, 21 Dec 2024 12:45:32 +0100 Subject: [PATCH] ente-cli 0.2.2: apply review comments --- Formula/e/ente-cli.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Formula/e/ente-cli.rb b/Formula/e/ente-cli.rb index ba48842c4b70f..33ff36c0934bb 100644 --- a/Formula/e/ente-cli.rb +++ b/Formula/e/ente-cli.rb @@ -6,17 +6,20 @@ class EnteCli < Formula license "AGPL-3.0-only" head "https://github.com/ente-io/ente.git", branch: "main" + livecheck do + url :stable + regex(/^cli-v?(\d+(?:\.\d+)+)$/i) + end + depends_on "go" => :build def install cd "cli" do - system "go", "build", *std_go_args(ldflags: "-s -w"), "main.go" - bin.install_symlink "ente-cli" => "ente" + system "go", "build", *std_go_args(ldflags: "-s -w", output: bin/"ente"), "main.go" end end test do - output = shell_output("#{bin}/ente version 2>&1") - assert_match "Version #{version}", output + assert_match version.to_s, shell_output("#{bin}/ente version") end end