git 在 Github 中上传/部署 jar 文件的最佳方式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16547301/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Best way to upload/deploy jar files in Github
提问by iFadi
I've used in the past google code and had the ability to upload runnable jar files for download, now i am using Github and understand it had a Download Tab where developers were able to upload files (i.e. a runnable jar file), unfortunately it is deprecated now.
我过去使用过谷歌代码,并且能够上传可运行的 jar 文件以供下载,现在我正在使用 Github 并了解它有一个下载选项卡,开发人员可以在其中上传文件(即可运行的 jar 文件),不幸的是它现在已弃用。
is there another/better way to deploy/upload a runnable jar files on Github for download (for non developers to download the whole project as a zip file and compile it, is a bit complicated).
是否有另一种/更好的方法在 Github 上部署/上传可运行的 jar 文件以供下载(非开发人员将整个项目下载为 zip 文件并编译它,有点复杂)。
I would like to hear your suggestions.
我想听听你的建议。
回答by VonC
Since 2d July 2013, you now have a new way to "upload runnable jar files for download" , through a release.
自 2013 年 7 月 2 日起,您现在可以通过发布.
Releases, a workflow for shipping software to end users.
Releases are first-class objects with changelogs and binary assets that present a full project history beyond Git artifacts. They're accessible from a repository's homepage:
Releases,一种将软件发送给最终用户的工作流。
发布是具有变更日志和二进制资产的一流对象,它们呈现了 Git 工件之外的完整项目历史。可以从存储库的主页访问它们:
- 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.
- 发行版附有发行说明和下载软件或源代码的链接。
- 遵循许多 Git 项目的约定,发布与 Git 标签相关联。您可以使用现有标签,或者让发布者在发布时创建标签。
- 您还可以将二进制资产(例如编译的可执行文件、缩小的脚本、文档)附加到发布。发布后,任何可以查看存储库的人都可以使用发布详细信息和资产。
That now replaces the old binary upload service, which was removed in December 2012.
现在取代了旧的二进制上传服务,该服务于 2012 年 12 月被删除。
回答by Steven Penny
回答by spuder
Github used to have a download link where you could upload your binaries.
Github 曾经有一个下载链接,您可以在其中上传二进制文件。
As of the end of 2012, the download option has been removed.
截至 2012 年底,下载选项已被删除。
My personal favorite is to use source forge.
我个人最喜欢使用 source forge。
Instructions on integrating github with source forge can be found here
可以在此处找到有关将 github 与 source forge 集成的说明
http://sourceforge.net/publish/?source=github
http://sourceforge.net/publish/?source=github
Here is an example of an arduino project that uses github for source, and source forge for binaries.
这是一个 arduino 项目的示例,该项目使用 github 作为源代码,并使用 source forge 作为二进制文件。
https://sourceforge.net/projects/all-spark-cube/
https://sourceforge.net/projects/all-spark-cube/