What is the best way to distribute a binary of my project on GitHub?

后端 未结 3 1700
旧巷少年郎
旧巷少年郎 2021-01-04 09:32

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/
3条回答
  •  时光说笑
    2021-01-04 10:03

    Probably not what you want to hear, but in your case this is mostly personal preference.

    You don't have to store the binary in the repo, because it is no important dependency. It is the other way around: everything you need to recreate the file should be in your repository (including Makefiles/project files).

    You can store the binary in the repo because it is fairly small. You should not store it in the repository when the overall size in the repository (base size + diffs, depending how big the diffs are) is overwhelming, but this does not seem to be the case (500 KiB according to your repo).


    My personal preference is to never store generated files (binaries, but also generated text files) in the repo. Possibly because I have experience with 2 GiB csv repositories that take ages to pull. (to be fair: it also takes ages to compile)

    For my github project I created a subdomain on some webspace where I put all my downloads and the index page of that subdomain forwards to my github-pages. The github pages link to the downloads on my webspace subdomain. Just because I like my github subdomain a bit more for this project.

    My tool works for different platforms though, so not every user needs every binary file. The binaries actually are backends (therefore dependencies), but interchangeable/optional

    You can have a look at my setup.

提交回复
热议问题