本文介绍了在GitHub上分发项目的二进制文件的最佳方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有,这是(正如你在你的问题中提到的那样)。
I have a small github repo to convert MS Word Documents, but most people will just want the binary.
Should I
- Reorganise my repo to have a
src/
andbin/
directories with the most up to date.exe
in with the code and expect people to download the whole lot? - Compile and place my binary somewhere else on the web and link to it?
- Include my binary in my repo but link to it seperately?
解决方案
To host that binary for your application, you now can, since 2nd July 2013, define a release.
- Releases are accompanied by release notes and links to download the software or source code.
- Following the conventions of many Git projects, releases are tied to Git tags. You can use an existing tag, or let releases create the tag when it's published.
- You can also attach binary assets (such as compiled executables, minified scripts, documentation) to a release. Once published, the release details and assets are available to anyone that can view the repository.
That replaces the old binary upload service, which was removed in December 2012 (as you mention in your question).
这篇关于在GitHub上分发项目的二进制文件的最佳方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!