Skip to content

Commit 72b0367

Browse files
committed
feat: add official Homebrew formula for v0.1.0
- Formula class name: Agb (official standard) - Multi-platform support (macOS Intel/ARM, Linux Intel/ARM) - Comprehensive test suite - Ready for Homebrew core repository submission
1 parent fcf862c commit 72b0367

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

homebrew/agb.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Agb < Formula
22
desc "Secure infrastructure for running AI-generated code"
33
homepage "https://github.com/agbcloud/agbcloud-cli"
44
url "https://github.com/agbcloud/agbcloud-cli/archive/refs/tags/v0.1.0.tar.gz"
5-
sha256 "edd04b46f1c72693935edf2c8fbeba2b3ca1a66dfca3da150235012d29a0b42b"
5+
sha256 "05bf8e62463c840f285bbb17b584ce3e55f2f8b07841ee280624444db5443229"
66
license "MIT"
77
head "https://github.com/agbcloud/agbcloud-cli.git", branch: "main"
88

@@ -11,12 +11,8 @@ class Agb < Formula
1111
def install
1212
# Set build variables matching the Makefile
1313
version = self.version
14-
# Handle git commit safely (archive tarball doesn't have .git directory)
15-
git_commit = begin
16-
Utils.safe_popen_read("git", "rev-parse", "--short", "HEAD").chomp
17-
rescue
18-
"unknown"
19-
end
14+
# Use embedded git commit from build time (since tarball has no .git directory)
15+
git_commit = "fcf862c"
2016
build_date = Time.now.utc.strftime("%Y-%m-%dT%H:%M:%SZ")
2117

2218
# Set Go proxy for better network connectivity (especially in China)

0 commit comments

Comments
 (0)