AllStarLink / asl3-asterisk

Building enviornment for the .deb packages of Asterisk LTS + ASL3/app_rpt.
GNU General Public License v2.0
2 stars 0 forks source link

Can't wget debs #2

Closed tsawyer closed 10 months ago

tsawyer commented 10 months ago

This doesn't work. Gives a 404. I can grab the source files so it appears there's something in the deb file name wget doesn't like. How do we wget or otherwise download the debs?

wget --header 'Authorization: token <mytoken>' https://github.com/AllStarLink/asl3-asterisk/releases/download/v0.0.2.fadead4-3/asl3-asterisk-config_20.5.0+asl3-0.0.2.fadead4-3_all.deb
encbar5 commented 10 months ago

This is a private repo, so you have to use the API get get release assets. This is a two step process, as you have to find the internal asset ID first. curl -L -H 'Authorization: token <your_token>' https://api.github.com/repos/AllStarLink/asl3-asterisk/releases/tags/v0.0.2.fadead4-3 Look for the asset url:

  "assets": [
    {
      "url": "https://api.github.com/repos/AllStarLink/asl3-asterisk/releases/assets/134073241",
      "id": 134073241,
      "node_id": "RA_kwDOKjwX-M4H_cuZ",
      "name": "asl3-asterisk-20.5.0+asl3-0.0.2.fadead4-3.tar.gz",

Then get that asset curl -vLJO -H 'Authorization: token <your_token> -H "Accept:application/octet-stream" "https://api.github.com/repos/AllStarLink/asl3-asterisk/releases/assets/134073241"

tsawyer commented 10 months ago

Thanks @encbar5. I'll have a look at that process.