-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsver.rb
52 lines (44 loc) · 1.41 KB
/
sver.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 Sver < Formula
desc "sver semantic version calculator"
homepage "https://aserto.com/"
version "1.3.13"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/aserto-dev/sver/releases/download/v1.3.13/sver1.3.13_darwin_arm64.zip"
sha256 "0d2374e7fa851e8cd553d085bf92bcf5fadffde95063983d7c6f110889626999"
def install
bin.install "sver"
end
end
if Hardware::CPU.intel?
url "https://github.com/aserto-dev/sver/releases/download/v1.3.13/sver1.3.13_darwin_x86_64.zip"
sha256 "2c56fdd5f4130936e5e126291ded0e812164bf1e58f495807e3c1dc9d3cf20ac"
def install
bin.install "sver"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/aserto-dev/sver/releases/download/v1.3.13/sver1.3.13_linux_arm64.zip"
sha256 "a416777c43e0d1efd36c6e67fc992cc702f9aec87c4f3b451d4087fc53b71ada"
def install
bin.install "sver"
end
end
if Hardware::CPU.intel?
url "https://github.com/aserto-dev/sver/releases/download/v1.3.13/sver1.3.13_linux_x86_64.zip"
sha256 "d6a9eb750947276a85a78839fc8867a0e38c73750b6a5dc0bf9f19a46eaa89c8"
def install
bin.install "sver"
end
end
end
test do
system "#{bin}/sver version"
end
end