-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkcl.rb
More file actions
58 lines (49 loc) · 1.59 KB
/
kcl.rb
File metadata and controls
58 lines (49 loc) · 1.59 KB
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.12.3"
license "Apache License"
depends_on "kcl-lsp"
on_macos do
on_intel do
url "https://github.com/kcl-lang/cli/releases/download/v0.12.3/kcl-v0.12.3-darwin-amd64.tar.gz", using: CurlDownloadStrategy
sha256 "4cdaecd0624060dbf9ad9e55212d5bc1c48e4279dfcae6a97fe27cf95924b426"
def install
bin.install "kcl"
end
end
on_arm do
url "https://github.com/kcl-lang/cli/releases/download/v0.12.3/kcl-v0.12.3-darwin-arm64.tar.gz", using: CurlDownloadStrategy
sha256 "70a971f4cd3b7ed676d340dd108e8cc27f6d961889fd300bc05f32fdf69faade"
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.12.3/kcl-v0.12.3-linux-amd64.tar.gz", using: CurlDownloadStrategy
sha256 "c7bb8693e2953cc8e44620ebac6bba4c40663cef1642ee2c826f78171ba1cd6c"
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.12.3/kcl-v0.12.3-linux-arm64.tar.gz", using: CurlDownloadStrategy
sha256 "74203bca5dc28ddc5cb15b3aeff8f07368edac579a5030e3bb08f1240017e5ea"
def install
bin.install "kcl"
end
end
end
end
test do
system "#{bin}/kcl version"
end
end