-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmajor.rb
More file actions
50 lines (44 loc) · 1.51 KB
/
major.rb
File metadata and controls
50 lines (44 loc) · 1.51 KB
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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Major < Formula
desc "Major CLI"
homepage "https://github.com/major-technology/major"
version "1.0.7"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://major-cli-releases.s3.us-west-1.amazonaws.com/1.0.7/major_1.0.7_darwin_amd64.tar.gz"
sha256 "942149cea4617e1d3d0cf3b04005025c782ad3651ef4e7a52c91b600df90d382"
define_method(:install) do
bin.install "major"
end
end
if Hardware::CPU.arm?
url "https://major-cli-releases.s3.us-west-1.amazonaws.com/1.0.7/major_1.0.7_darwin_arm64.tar.gz"
sha256 "1613da378db3371cf5cc81ac69a289d14ccb177479bad1a1304d4ed9e472099c"
define_method(:install) do
bin.install "major"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://major-cli-releases.s3.us-west-1.amazonaws.com/1.0.7/major_1.0.7_linux_amd64.tar.gz"
sha256 "bc965a4f0df16ee211244c96f0cd96e882dbe7f35e05f1a472c7dc39f5154e57"
define_method(:install) do
bin.install "major"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://major-cli-releases.s3.us-west-1.amazonaws.com/1.0.7/major_1.0.7_linux_arm64.tar.gz"
sha256 "4a0a16dd33e1328dfd085b84e9acaaa8bc26b77153e8a56e6915bcc92590bcf2"
define_method(:install) do
bin.install "major"
end
end
end
test do
system "#{bin}/major", "--version"
end
end