File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ class Actionbase < Formula
2+ desc "actionbase CLI"
3+ homepage "https://github.com/kakao/actionbase"
4+ version "0.0.1"
5+ license "Apache-2.0 license"
6+
7+ on_macos do
8+ if Hardware ::CPU . arm?
9+ url "https://github.com/kakao/actionbase/releases/download/cli/#{ version } /actionbase_latest_darwin_arm64.tar.gz"
10+ sha256 "0ac3b042eff3e3dcd5e1d299815d4782149fe6e17039b461783ee3cd29fe6d88"
11+ else
12+ url "https://github.com/kakao/actionbase/releases/download/cli/#{ version } /actionbase_latest_darwin_amd64.tar.gz"
13+ sha256 "b96e8967a91109830ab1cbd90f567cdf0e24fd9bc486b91c753df91b7065e4eb"
14+ end
15+ end
16+
17+ on_linux do
18+ url "https://github.com/kakao/actionbase/releases/download/cli/#{ version } /actionbase_latest_linux_amd64.tar.gz"
19+ sha256 "b2e8f88534f417099892025209b68a389e1abe24e6883a08cfed24decb4cf939"
20+ end
21+
22+ def install
23+ bin . install "actionbase"
24+ end
25+
26+ test do
27+ system "#{ bin } /actionbase" , "--version"
28+ end
29+ end
You can’t perform that action at this time.
0 commit comments