-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkcl.rb
58 lines (49 loc) · 1.59 KB
/
kcl.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Kcl < Formula
desc "KCL Command Line Interface"
homepage "https://github.com/kcl-lang/kcl"
version "0.11.0"
license "Apache License"
depends_on "kcl-lsp"
on_macos do
on_intel do
url "https://github.com/kcl-lang/cli/releases/download/v0.11.0/kcl-v0.11.0-darwin-amd64.tar.gz", using: CurlDownloadStrategy
sha256 "c4a9c9d841e6c3d33bb4a93e03bf2126c393cb92638677000fac719798b49b3b"
def install
bin.install "kcl"
end
end
on_arm do
url "https://github.com/kcl-lang/cli/releases/download/v0.11.0/kcl-v0.11.0-darwin-arm64.tar.gz", using: CurlDownloadStrategy
sha256 "fd5162bbf6ff9d9bb4db9b4d197b619beadfe51c544010ba279ca208bb2b11b7"
def install
bin.install "kcl"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/kcl-lang/cli/releases/download/v0.11.0/kcl-v0.11.0-linux-amd64.tar.gz", using: CurlDownloadStrategy
sha256 "25ebbf3ea9f1e47f823e9a5d6c19da071564000f681e0810caaadc5c4ed74f75"
def install
bin.install "kcl"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/kcl-lang/cli/releases/download/v0.11.0/kcl-v0.11.0-linux-arm64.tar.gz", using: CurlDownloadStrategy
sha256 "23c7673fc20dd6f379fed22b77f0a4a03ef64c896924f24e41ab9a51d41effaf"
def install
bin.install "kcl"
end
end
end
end
test do
system "#{bin}/kcl version"
end
end