-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcue.rb
55 lines (47 loc) · 1.54 KB
/
cue.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Cue < Formula
desc "CUE is an open source data constraint language which aims to simplify tasks involving defining and using data."
homepage "https://cuelang.org"
version "0.12.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/cue-lang/cue/releases/download/v0.12.0/cue_v0.12.0_darwin_amd64.tar.gz"
sha256 "8474e522a978ecadef49b06d706ff276cd07629b1aa107b88adfc1284d3f93cc"
def install
bin.install "cue"
end
end
if Hardware::CPU.arm?
url "https://github.com/cue-lang/cue/releases/download/v0.12.0/cue_v0.12.0_darwin_arm64.tar.gz"
sha256 "7055a6423f753c8ea763699d48d78d341e8543397399daee281c66ecdc9ec5a5"
def install
bin.install "cue"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/cue-lang/cue/releases/download/v0.12.0/cue_v0.12.0_linux_amd64.tar.gz"
sha256 "e55cd5abd98a592c110f87a7da9ef15bc72515200aecfe1bed04bf86311f5ba1"
def install
bin.install "cue"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/cue-lang/cue/releases/download/v0.12.0/cue_v0.12.0_linux_arm64.tar.gz"
sha256 "488012bb0e5c080e2a9694ef8765403dd1075a4ec373dda618efa2d37b47f14f"
def install
bin.install "cue"
end
end
end
end
test do
system "#{bin}/cue version"
end
end