Skip to content

Instantly share code, notes, and snippets.

@fdb713
Last active May 3, 2018 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdb713/9037778 to your computer and use it in GitHub Desktop.
Save fdb713/9037778 to your computer and use it in GitHub Desktop.
肥猫的有道声优(大雾)homebrew打包
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