Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting executable on github

Tags:

I want allow users to download executable of one of my project on github, without downloading all sources or browsing the entire project.

According to this similar question, you could use a upload/download service, which apparently, github has shut down.

So is there another way? Is github aiming at sharing code only, not software?

like image 322
corentin Avatar asked Dec 25 '12 18:12

corentin


People also ask

Can I put executables on GitHub?

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.

How do I make an executable from GitHub?

To export a Github repository, click the "Clone or download" button, then choose "Download ZIP". You will find the sources in the downloaded Zip file. To download the released .exe file, click the "releases" button.

Can you host servers on GitHub?

GitHub Pages. Websites for you and your projects, hosted directly from your GitHub repository. Just edit, push, and your changes are live.


1 Answers

Update 2d July 2013, you now can define a release.

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.

This is what replaces the old binary upload service, which was removed in December 2012!


Ideally, you would store your executable in an artifact repository, as opposed as a source repository like GitHub.
So yes, GitHub is for source control management, not deliveries (like binaries produced from your code).

Nexus is the usual choice for any generated artifacts like binaries, with a free upload possibility for open-source projects.
See "How do I get my software into Central?" (from this answer, also mentioned in "Maven repository hosting for non-public artifacts?")

like image 80
VonC Avatar answered Sep 18 '22 18:09

VonC