-
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.1"
license "Apache License"
depends_on "kcl-lsp"
on_macos do
on_intel do
url "https://github.com/kcl-lang/cli/releases/download/v0.11.1/kcl-v0.11.1-darwin-amd64.tar.gz", using: CurlDownloadStrategy
sha256 "155bacf3ba3c59c29d66faaed9d2e92761f4c7d826f98d2d0382885389f00123"
def install
bin.install "kcl"
end
end
on_arm do
url "https://github.com/kcl-lang/cli/releases/download/v0.11.1/kcl-v0.11.1-darwin-arm64.tar.gz", using: CurlDownloadStrategy
sha256 "376cf8eb9f08ac8f5eb8d28a275d592a6c4a72f5f24ff5567269298dc36e9a04"
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.1/kcl-v0.11.1-linux-amd64.tar.gz", using: CurlDownloadStrategy
sha256 "40e6e2a1b21bd0d892bd1c9205a05146011225d9cf4501de24fee5fd556a7cf6"
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.1/kcl-v0.11.1-linux-arm64.tar.gz", using: CurlDownloadStrategy
sha256 "f1151fc5b2878dce6e268f5752074fa0b63c680725a570dc9f30b44022c64b99"
def install
bin.install "kcl"
end
end
end
end
test do
system "#{bin}/kcl version"
end
end