Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议在homebrew发布 #15

Open
LomotHo opened this issue Jan 9, 2020 · 2 comments
Open

建议在homebrew发布 #15

LomotHo opened this issue Jan 9, 2020 · 2 comments

Comments

@LomotHo
Copy link

LomotHo commented Jan 9, 2020

macos10.15不能修改系统文件了,并且也不想用sudo安装,能不能发布一个homebrew的版本

@skywind3000
Copy link
Owner

弄不来 homebrew,怎么弄啊?

@LomotHo
Copy link
Author

LomotHo commented Jan 9, 2020

刚刚试了一下,已经放到自己的brew仓库里面去了,你可以试着push到homebrew-core

lomot@lomot-Mac ~ brew search emake
==> Formulae
libpagemaker                        lomotho/taps/emake ✔                premake                             remake                              snakemake

我发布在私有仓库的具体步骤:

  1. 创建github项目 LomotHo/homebrew-taps
git clone [email protected]:LomotHo/homebrew-taps.git
cd homebrew-taps
mkdir Formula
  1. 添加emake.rb
// 此命令会在/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula下生成emake.rb
brew create https://github.com/LomotHo/emake/archive/3.6.9.tar.gz
// 链接是github release中复制的

修改emake.rb中install部分,如下:(需要提前在emake项目下把emake.py复制一份为emake,我fork了一份)

  def install
    bin.install "emake"
  end
  1. 复制emake.rb
    修改完emake.rb后可以把/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula中的emake.rb复制一份到自己仓库homebrew-taps中,我是直接mv过来的,然后提交git修改。

之后就可以从brew 安装了:

brew install lomotho/taps/emake
  1. 提交到homebrew-core,这个没尝试

我参考的是这篇文章:https://mogeko.me/2019/046/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants