-
Notifications
You must be signed in to change notification settings - Fork 0
/
populator.rb
52 lines (44 loc) · 1.69 KB
/
populator.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Populator < Formula
desc "Populator is a command-line tool, which helps to populate various Capact content."
homepage "https://github.com/capactio/homebrew-tap"
version "0.6.0"
license "Apache License 2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/capactio/capact/releases/download/v0.6.0/populator-darwin-amd64"
sha256 "98ab6bde2a642b06a399aed1bef4b2165339fe56843bd0d20d6664932add727d"
def install
bin.install "populator-darwin-amd64" => "populator"
end
end
if Hardware::CPU.arm?
url "https://github.com/capactio/capact/releases/download/v0.6.0/populator-darwin-arm64"
sha256 "59849562c12df109f0056b45f00d8fee0dd32c9e8d2df6f1b620e19510a6ea9f"
def install
bin.install "populator-darwin-arm64" => "populator"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "hhttps://github.com/capactio/capact/releases/download/v0.6.0/populator-linux-arm64"
sha256 "1d6bc66e24d993600e01a156e882b03ad12dc878a79c3e0013802f74afb9b54f"
def install
bin.install "populator-linux-arm64" => "populator"
end
end
if Hardware::CPU.intel?
url "https://github.com/capactio/capact/releases/download/v0.6.0/populator-linux-amd64"
sha256 "fa1486b3a9f44e90de4eff6753314bdff471627a13e43719413d88fdac8547d8"
def install
bin.install "populator-linux-amd64" => "populator"
end
end
end
test do
system "#{bin}/populator help"
end
end