-
Notifications
You must be signed in to change notification settings - Fork 0
/
plz.rb
51 lines (43 loc) · 1.38 KB
/
plz.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 Plz < Formula
desc "plz CLI"
homepage "https://plz.review"
version "0.3.6"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/bitcomplete/plz-cli/releases/download/v0.3.6/plz_0.3.6_Darwin_x86_64.tar.gz"
sha256 "00c6a522df584f5efbf3df3328d06b8056b39baea36abfcbfb8e76ea2de04508"
def install
bin.install "plz"
end
end
if Hardware::CPU.arm?
url "https://github.com/bitcomplete/plz-cli/releases/download/v0.3.6/plz_0.3.6_Darwin_arm64.tar.gz"
sha256 "fbb0cd210a99875da784ba6e3667ca8d0597d3a4e2fdaed1f7f15ef6fe1d8153"
def install
bin.install "plz"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/bitcomplete/plz-cli/releases/download/v0.3.6/plz_0.3.6_Linux_arm64.tar.gz"
sha256 "c07b8187435a3dc8ecf29df77b58da03ccb9efadb4f595c01e13e63437000762"
def install
bin.install "plz"
end
end
if Hardware::CPU.intel?
url "https://github.com/bitcomplete/plz-cli/releases/download/v0.3.6/plz_0.3.6_Linux_x86_64.tar.gz"
sha256 "5b324cbf8c734cbf3aa4098e117e2ec5c07aa342c1b584d2712e2e3123112d61"
def install
bin.install "plz"
end
end
end
test do
system "#{bin}/plz --version"
end
end