Is there a link to GitHub for downloading a file in the latest release of a repository?

前端 未结 18 2350
情深已故
情深已故 2020-12-02 04:26

Using GitHub\'s Release feature, it is possible to provide a link to download a specific version of the published software. However, every time a release is made, the gh-pag

18条回答
  •  广开言路
    2020-12-02 05:10

    In case that the repo is using just tags instead of release -- cf. jQuery -- the solutions which based on one URL does not work.

    Instead, you have to query all tags, sort them and construct the download URL. I implemented such a solution for the language Go and the jQuery repo: Link to Github.

    Perhaps, this helps someone.

提交回复
热议问题