-
Notifications
You must be signed in to change notification settings - Fork 1
/
bytom.rb
28 lines (25 loc) · 1.08 KB
/
bytom.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
class Bytom < Formula
desc "Official Go implementation of the Bytom protocol "
homepage "https://bytom.io/"
url "https://github.com/Bytom/bytom/releases/download/v1.1.0/bytom-1.1.0-darwin_amd64.tgz"
version "1.1.0"
sha256 "98b03a10e4885a382ed1255c896dab851fde197cd2a98ddd6558e91c2fe66004"
def install
system 'mv bytomd-darwin_amd64 bytomd'
system 'mv bytomcli-darwin_amd64 bytomcli'
bin.install "bytomd"
bin.install "bytomcli"
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test bytom`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
end