什么是从GitHub的项目分配的二进制文件的最佳做法? [英] what is the best practice of distributing binaries from a github project?

查看:171
本文介绍了什么是从GitHub的项目分配的二进制文件的最佳做法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是从GitHub的项目分配的二进制文件的最佳做法?

what is the best practice of distributing binaries from a github project?

我能想到的:


  • 创建项目中的bin文件夹,你保存的二进制文件的副本。
    然而,github上是为了存储源$ C ​​$ C,而不是二进制文件存储大
    定期更改的二进制文件可能是昂贵的磁盘空间QUA和带宽?

  • 上传的二进制文件拷贝到 GitHub的页面
    项目,或者使用一个单独的网站主办的二进制文件。
    然而,这并不总是可行的,需要更多的(手)的工作,以保持
    二进制文件是最新的,我宁愿希望有二进制文件自动或用更新
    单个动作。

推荐答案

现在很清楚,我认为这是在你的GitHub项目本身重要的的存储二进制文件。因此,你需要将存储二进制文件别处。我碰到可能的解决方案是:

It is clear to me now that it is important not to store binaries in your github project itself. Thus, you will need to store binaries elsewhere. Possible solutions I came across are:


  • 存储在单独的子模块的二进制文件( dalores想法)。这是有道理的将它们存储在您的项目 github上页中,您可以用通过github上托管你的项目网站。

  • 如果你只有几个二进制文件或zip文件而已,你可以上传他们通过下载到GitHub上 - >上传新文件。这个功能是相当有限的,虽然,你不能把文件夹结构。

  • 在java的jar文件的情况下,也有解决方案有像的Nexus 用于管理存储库。

  • 存储在您自己举办一个完全独立的网站上的二进制文件

  • Store the binaries in a separate submodule (dalores idea). It makes sense to store them in your projects github pages, which you use to host your projects website via github.
  • If you have only a few binaries or zip file only, you can upload them to github via Downloads -> Upload a new file. This feature is quite limited though, you cannot put files in structured folders.
  • In case of java jar files, there are solutions out there like Nexus for managing your libraries.
  • Store the binaries on a completely separate site that you host yourself

这篇关于什么是从GitHub的项目分配的二进制文件的最佳做法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆