我正在尝试从 github 版本中获取文件,但它说找不到?我正在使用的食谱如下所示。
DESCRIPTION = "Description of package"
LICENSE = "CLOSED"
MY_DESTINATION = "${libdir}/folder"
#SRC_URI = "file://file.zip"
SRC_URI = "https://github.com/user/repo/releases/download/latest/file.zip;protocol=file"
S = "${WORKDIR}"
do_install_append() {
install -d ${D}${MY_DESTINATION}
cp -r ${S}/file/* ${D}${MY_DESTINATION}
}
FILES_${PN} += "${MY_DESTINATION}/*"
有人可以帮助我在这里做错了吗?
错误如下...
ERROR: repo-1.0-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export GIT_PROXY_COMMAND="oe-git-proxy"; export NO_PROXY="*"; export PATH="/work/build/tmp-glibc/sysroots-uninative/x86_64-linux/usr/bin:/work/openembedded-core/scripts:/work/build/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi.......
https://github.com/user/repo/releases/download/latest/file.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-07-14 09:22:01 ERROR 404: Not Found.
ERROR: repo-1.0-r0 do_fetch: Fetcher failure for URL: 'https://github.com/user/repo/releases/download/latest/file.zip;protocol=http'. Unable to fetch URL from any source.