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

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

    In case you want to use in alpine, then follow these steps

     apk add curl ca-certificates wget
    

    wget -q $(curl -s https://api.github.com/repos///releases/latest | grep browser_download_url | grep "$ARCH" | cut -d '"' -f 4)

    -q in wget is quite mode, if you want to see output then use without q

提交回复
热议问题