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

添加 binary 分发功能 #143

Merged
merged 2 commits into from
Dec 29, 2019
Merged

添加 binary 分发功能 #143

merged 2 commits into from
Dec 29, 2019

Conversation

wang-jun-coder
Copy link
Contributor

您好,由于某些原因,我希望这个项目可以使用 binary 分发包,这样在某些环境可以省去下载后编译的问题。需要合并一些代码,这些改动只保证了可以使用 node-pre-gyp,但是不同平台的二进制包还需要您根据 node-pre-gyp-github 的说明,手动上传

引入依赖

注意事项

  • 参考 node-pre-gyp-github
  • node-pre-gyp-github 将文件直接存储至您的GitHub 对应的 release 资源下,

@wang-jun-coder wang-jun-coder changed the title ### 添加 binary 分发功能 添加 binary 分发功能 Dec 19, 2019
@yanyiwu
Copy link
Owner

yanyiwu commented Dec 21, 2019

我merge完代码,然后参考https://github.com/bchr02/node-pre-gyp-github 上传是吗

@wang-jun-coder
Copy link
Contributor Author

是的,您有时间先看下逻辑,不算复杂,我看 issue 中也有些类似需求的,主要用的还是 node-pre-gyp, node-pre-gyp-github 这个只是用来上传二进制包到 github 的

@wang-jun-coder
Copy link
Contributor Author

wang-jun-coder commented Dec 21, 2019

#136#98#98 (comment)
理论上弄好了,安装时对环境的依赖会比较小,不再需要 g++ 之类的,当然,如果匹配不到对应二进制包,也会本地再编译的

@yanyiwu
Copy link
Owner

yanyiwu commented Dec 22, 2019 via email

@yanyiwu yanyiwu merged commit dafcbd5 into yanyiwu:master Dec 29, 2019
@sunzongzheng
Copy link
Contributor

期待更新版本~

@yanyiwu
Copy link
Owner

yanyiwu commented Jan 8, 2020 via email

@sunzongzheng
Copy link
Contributor

也可以使用travis-ci,对有tag的commit进行预编译,然后自动发布release

@yanyiwu
Copy link
Owner

yanyiwu commented Jan 8, 2020 via email

@yanyiwu
Copy link
Owner

yanyiwu commented Jan 8, 2020 via email

@yanyiwu
Copy link
Owner

yanyiwu commented Jan 11, 2020

@sunzongzheng https://travis-ci.org/yanyiwu/nodejieba/jobs/635637382

1.26s$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl
invalid option "--api_key="
failed to deploy

@yanyiwu
Copy link
Owner

yanyiwu commented Jan 11, 2020

#145

@yanyiwu
Copy link
Owner

yanyiwu commented Jan 11, 2020

哦我应该知道原因了,我试试。

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

Successfully merging this pull request may close these issues.

3 participants