-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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" | ||
|
||
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", output: bin/"ente"), "main.go" | ||
end | ||
end | ||
|
||
test do | ||
Check failure on line 22 in Formula/e/ente-cli.rb GitHub Actions / Linux`brew test --verbose ente-cli` failed on Linux!
Check failure on line 22 in Formula/e/ente-cli.rb GitHub Actions / macOS 15-arm64`brew test --verbose ente-cli` failed on macOS Sequoia (15) on Apple Silicon!
Check failure on line 22 in Formula/e/ente-cli.rb GitHub Actions / macOS 14-arm64`brew test --verbose ente-cli` failed on macOS Sonoma (14) on Apple Silicon!
Check failure on line 22 in Formula/e/ente-cli.rb GitHub Actions / macOS 13-arm64`brew test --verbose ente-cli` failed on macOS Ventura (13) on Apple Silicon!
Check failure on line 22 in Formula/e/ente-cli.rb GitHub Actions / macOS 13-x86_64`brew test --verbose ente-cli` failed on macOS Ventura (13)!
Check failure on line 22 in Formula/e/ente-cli.rb GitHub Actions / macOS 14-x86_64`brew test --verbose ente-cli` failed on macOS Sonoma (14)!
|
||
assert_match version.to_s, shell_output("#{bin}/ente version") | ||
end | ||
end |