Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ente-cli 0.2.2 (new formula) #201919

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Formula/e/ente-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class EnteCli < Formula
desc "Utility for exporting data from Ente and decrypt the export from Ente Auth"
homepage "https://github.com/ente-io/ente/tree/main/cli"
url "https://github.com/ente-io/ente/archive/refs/tags/cli-v0.2.2.tar.gz"
sha256 "d03754880fe7dfdc422b37e4864c2aa469a2b19c645346de2d2de7fa62b71de3"
license "AGPL-3.0-only"
head "https://github.com/ente-io/ente.git", branch: "main"

mathieutu marked this conversation as resolved.
Show resolved Hide resolved
livecheck do
url :stable
regex(/^cli-v?(\d+(?:\.\d+)+)$/i)
end

depends_on "go" => :build

# Fix to call keychain on macOS for the version command, should be removed in the next release
# PR ref: https://github.com/ente-io/ente/pull/4028
patch do
url "https://github.com/ente-io/ente/commit/cfae8523a18bdc89ad7de3fb5368fbd4408adeae.patch?full_index=1"
sha256 "a502afa9f52ede09baf6281a05853950a827e58bc168335ce117bd1e8e2fbb52"
end

def install
cd "cli" do
system "go", "build", *std_go_args(ldflags: "-s -w", output: bin/"ente"), "main.go"
end
end

test do

Check failure on line 29 in Formula/e/ente-cli.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew test --verbose ente-cli` failed on Linux!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:54:in `<main>'
assert_match version.to_s, shell_output("#{bin}/ente version")
end
end
Loading