forked from jtarchie/builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder.rb
51 lines (43 loc) · 1.36 KB
/
builder.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Builder < Formula
desc ""
homepage ""
version "0.0.35"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/jtarchie/builder/releases/download/v0.0.35/builder_darwin_arm64.tar.gz"
sha256 "604f4542e5d42a594dea6078f964007b6fedc865eec11763bf7d6075b74f9d9b"
def install
bin.install "builder"
end
end
if Hardware::CPU.intel?
url "https://github.com/jtarchie/builder/releases/download/v0.0.35/builder_darwin_x86_64.tar.gz"
sha256 "e934a872d88f94a23d97ffe4d5f77e81b52ba1710b47a7c4c7cb7f65219e7623"
def install
bin.install "builder"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/jtarchie/builder/releases/download/v0.0.35/builder_linux_arm64.tar.gz"
sha256 "33911c1778d5a68bc83b08868b0f1037c9e06463abc4a9f0ef617997aeb9cbb7"
def install
bin.install "builder"
end
end
if Hardware::CPU.intel?
url "https://github.com/jtarchie/builder/releases/download/v0.0.35/builder_linux_x86_64.tar.gz"
sha256 "73f085213a3e72eac1f3a54f125dbffd1ce341e73fe0207fdf33e1e4042e937b"
def install
bin.install "builder"
end
end
end
test do
system "#{bin}/builder --help"
end
end