-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpm.rb
47 lines (40 loc) · 1.36 KB
/
cpm.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Cpm < Formula
desc "NEO Blockchain Contract Package Manager"
homepage "https://github.com/CityOfZion/cpm"
version "1.1.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/CityOfZion/cpm/releases/download/v1.1.0/cpm_1.1.0_darwin_amd64.tar.gz"
sha256 "b27d57d62057a798204897406a2854a5b8e89d31d4aeffd95372e2e39be7c399"
def install
bin.install "cpm"
end
end
if Hardware::CPU.arm?
url "https://github.com/CityOfZion/cpm/releases/download/v1.1.0/cpm_1.1.0_darwin_arm64.tar.gz"
sha256 "e5fa10baf68d19d9748bebc01500e597f118d80ca0a69edf1ceabd1cc61493f8"
def install
bin.install "cpm"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/CityOfZion/cpm/releases/download/v1.1.0/cpm_1.1.0_linux_amd64.tar.gz"
sha256 "64fa4a7373613c59e7015fe891d6e1f595a819ecb2e60ec4df2400dcde9c3338"
def install
bin.install "cpm"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/CityOfZion/cpm/releases/download/v1.1.0/cpm_1.1.0_linux_arm64.tar.gz"
sha256 "bb6c59eb0e1bf508c87d7eb4efdccc183655291c12234eac6a1dcf5d7be95915"
def install
bin.install "cpm"
end
end
end
end