我有一个简单的python应用程序,我想通过私人Homebrew点击分发 . 我在主回购中有以下文件:
test/
test.sh # script that runs the python script below.
main.py # main script.
并将以下配置(test.rb)提交给我的tap回购:
class Test < Formula
desc "Test."
url "https://github.com/..."
version "0.0.1"
def install
bin.install "test.sh"
end
test do
end
end
但是当我安装main.py文件时不可用 .
-
如何分发(和引用)相关的源脚本?
-
我可以重命名在/ usr / local / bin中创建的符号链接吗?
-
是否有比以下更完整的文档:https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md(例如,列出完整的命令语法?)
谢谢 .
1 回答
上面的公式没有提到python文件,所以它没有安装 . 你可以尝试类似的东西:
以下是完整的文档:https://github.com/Homebrew/homebrew/tree/master/share/doc/homebrew