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

前端 未结 18 2330
情深已故
情深已故 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:19

    A solution using (an inner) wget to get the HTML content, filter it for the zip file (with egrep) and then download the zip file (with the outer wget).

    wget https://github.com/$(wget https://github.com///releases/latest -O - | egrep '/.*/.*/.*zip' -o)
    

提交回复
热议问题