Last active
May 3, 2018 12:43
-
-
Save fdb713/9037778 to your computer and use it in GitHub Desktop.
肥猫的有道声优(大雾)homebrew打包
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Ydcv < Formula | |
homepage 'https://github.com/felixonmars/ydcv' | |
url 'https://github.com/felixonmars/ydcv/archive/master.zip' | |
version '0.0.1' | |
head 'https://github.com/felixonmars/ydcv' | |
def install | |
bin.install "src/ydcv.py" => "ydcv" | |
zsh_completion.install "contrib/zsh_completion" => "ydcv" | |
end | |
test do | |
exit_code = system("ydcv --help > /dev/null") | |
assert_equal true, exit_code | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment