OSDN Git Service

update 1.0.7-hotfix-9e872c0
[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 "ttps://github.com/Bytom/bytom/releases/download/v1.0.7-hotfix-9e872c0/bytom-1.0.7-hotfix-9e872c0-darwin_amd64.tgz"
5     version "1.0.7-hotfix-9e872c0"
6     sha256 "9e1d34c0d02d0ad6251a4a87538d5d7eeea278b298aee940e2cac090beaa75ef"
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