-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
cloudpan189-go.rb
31 lines (27 loc) 路 1.73 KB
/
cloudpan189-go.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Cloudpan189Go < Formula
desc "Command-line client tool for Cloud189 web disk"
homepage "https://github.com/tickstep/cloudpan189-go"
url "https://github.com/tickstep/cloudpan189-go/archive/refs/tags/v0.1.3.tar.gz"
sha256 "a215b75369af535aed214c94b66ebb3239b6ef5fcbc2f74039cf9c3eda4b04c1"
license "Apache-2.0"
head "https://github.com/tickstep/cloudpan189-go.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "c66a3ce0426a356d4b5c05fe95fc6213ed4c867048157ebbc862ca9196af857e"
sha256 cellar: :any_skip_relocation, arm64_ventura: "b6870cbe4123a3eae721cc676130d2146794d9a3631268d48c579430a923173f"
sha256 cellar: :any_skip_relocation, arm64_monterey: "b6870cbe4123a3eae721cc676130d2146794d9a3631268d48c579430a923173f"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b6870cbe4123a3eae721cc676130d2146794d9a3631268d48c579430a923173f"
sha256 cellar: :any_skip_relocation, sonoma: "0259637185f73febd2da780378accfa232b124b8cb46aa376a64ce5adc319140"
sha256 cellar: :any_skip_relocation, ventura: "6ab13514be4a47d60c22436daad9bd2ca0612b61eff549630d8548cb24405424"
sha256 cellar: :any_skip_relocation, monterey: "6ab13514be4a47d60c22436daad9bd2ca0612b61eff549630d8548cb24405424"
sha256 cellar: :any_skip_relocation, big_sur: "6ab13514be4a47d60c22436daad9bd2ca0612b61eff549630d8548cb24405424"
sha256 cellar: :any_skip_relocation, x86_64_linux: "21c193bc56690eef410bdbbce6d6b774fcf658f16b114ea0222afee18591d361"
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w")
end
test do
system bin/"cloudpan189-go", "run", "touch", "output.txt"
assert_predicate testpath/"output.txt", :exist?
end
end