OSDN Git Service

Update bytom.rb
[bytom/homebrew-bytom.git] / bytom.rb
1 class Bytom < Formula
2     desc "Official Go implementation of the Bytom protocol "
3     homepage "https://bytom.io/"
4     url "https://github.com/Bytom/bytom/releases/download/v1.1.0/bytom-1.1.0-darwin_amd64.tgz"
5     version "1.1.0"
6     sha256 "98b03a10e4885a382ed1255c896dab851fde197cd2a98ddd6558e91c2fe66004"
7   
8     def install
9         system 'mv bytomd-darwin_amd64 bytomd'
10         system 'mv bytomcli-darwin_amd64 bytomcli'
11         bin.install "bytomd"
12         bin.install "bytomcli"
13     end
14   
15     test do
16       # `test do` will create, run in and delete a temporary directory.
17       #
18       # This test will fail and we won't accept that! For Homebrew/homebrew-core
19       # this will need to be a test that verifies the functionality of the
20       # software. Run the test with `brew test bytom`. Options passed
21       # to `brew install` such as `--HEAD` also need to be provided to `brew test`.
22       #
23       # The installed folder is not in the path, so use the entire path to any
24       # executables being tested: `system "#{bin}/program", "do", "something"`.
25       system "false"
26     end
27   end
28