0

I am trying to fetch a github latest release from a recipe(bitbake) using yocto build system.

My recipe looks like this...

DESCRIPTION = "web based app "
LICENSE = "CLOSED"

APP_DESTINATION = "${libdir}/App"
SRC_URI = " \
    https://github.com/User/App/releases/download/latest/App.zip;github_private_asset=1 \
   "

S = "${WORKDIR}"


do_install_append() {
         install -d ${D}${APP_DESTINATION}
         cp -r ${S}/App/* ${D}${APP_DESTINATION}
   
}

FILES_${PN} += "\
    ${APP_DESTINATION}/* \
"

but it says..

Resolving github.com (github.com)... 170.72.121.4
Connecting to github.com (github.com)|170.72.121.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-10-04 07:10:36 ERROR 404: Not Found.

Can someone please help how to fetch the releases?

Hsn
  • 1,168
  • 2
  • 16
  • 39

1 Answers1

0

There is a new fetch mode in Yocto which is available from github-releases.bbclass. It is designed to fetch the release source from public GitHub https artifact.

Try to use inherit github-releases and GITHUB_BASE_URI. Also there is a libusb1 recipe which uses same fetching, it can help a lot.

Livius
  • 198
  • 4