File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11class Tgcli < Formula
22 desc "Telegram CLI tool using grammers (pure Rust MTProto)"
33 homepage "https://github.com/dgrr/tgcli"
4- url "https://github.com/dgrr/tgcli/archive/refs/tags/v0.1.0.tar.gz"
5- sha256 "PLACEHOLDER_SHA256"
4+ version "0.1.0"
65 license "MIT"
7- head "https://github.com/dgrr/tgcli.git" , branch : "main"
86
9- depends_on "rust" => :build
7+ on_macos do
8+ on_arm do
9+ url "https://github.com/dgrr/tgcli/releases/download/v#{ version } /tgcli-darwin-arm64"
10+ sha256 "PLACEHOLDER_DARWIN_ARM64"
11+ end
12+ on_intel do
13+ url "https://github.com/dgrr/tgcli/releases/download/v#{ version } /tgcli-darwin-amd64"
14+ sha256 "PLACEHOLDER_DARWIN_AMD64"
15+ end
16+ end
17+
18+ on_linux do
19+ on_arm do
20+ url "https://github.com/dgrr/tgcli/releases/download/v#{ version } /tgcli-linux-arm64"
21+ sha256 "PLACEHOLDER_LINUX_ARM64"
22+ end
23+ on_intel do
24+ url "https://github.com/dgrr/tgcli/releases/download/v#{ version } /tgcli-linux-amd64"
25+ sha256 "PLACEHOLDER_LINUX_AMD64"
26+ end
27+ end
1028
1129 def install
12- system "cargo" , "install" , *std_cargo_args
30+ binary = Dir [ "tgcli-*" ] . first || "tgcli"
31+ bin . install binary => "tgcli"
1332 end
1433
1534 test do
You can’t perform that action at this time.
0 commit comments