【发布时间】:2015-07-27 18:23:19
【问题描述】:
我有一个简单的 python 应用程序,我想通过私人 Homebrew 水龙头进行分发。我在主仓库中有以下文件:
test/
test.sh # script that runs the python script below.
main.py # main script.
以下配置 (test.rb) 已提交到我的 Tap repo:
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 更完整的文档(例如,列出完整的命令语法?)
谢谢。
【问题讨论】:
标签: homebrew