Cix: Fix download issue for component_cix

This commit is contained in:
leeboby 2025-12-22 17:14:31 +08:00
parent 9bdae924e1
commit abeb8dc3d7
1 changed files with 17 additions and 1 deletions

View File

@ -459,8 +459,24 @@ if [[ ${IGNORE_UPDATES} != yes ]]; then
if [[ $BOARDFAMILY == "cix" ]]; then
if [[ ${GITEE_SERVER} == yes ]]; then
fetch_from_repo "https://gitee.com/orangepi-xunlong/component_cix-$BRANCH.git" "${EXTER}/cache/sources/component_cix-$BRANCH" "branch:main"
if [[ ! -f "${EXTER}/cache/sources/component_cix-$BRANCH/debs/cix-npu-onnxruntime_1.1.0_arm64.deb" ]]; then
display_alert "Downloading deb" "cix-npu-onnxruntime" "info"
wget -c -t 5 -P "${EXTER}/cache/sources/component_cix-$BRANCH/debs/" \
http://www.iplaystore.cn/upload/debs/cix-npu-onnxruntime_1.1.0_arm64.deb
fi
else
fetch_from_repo "https://github.com/orangepi-xunlong/component_cix-$BRANCH.git" "${EXTER}/cache/sources/component_cix-$BRANCH" "branch:main"
if [[ ! -f "${EXTER}/cache/sources/component_cix-$BRANCH/debs/cix-npu-onnxruntime_1.1.0_arm64.deb" ]]; then
display_alert "Downloading deb" "cix-npu-onnxruntime" "info"
wget -c -t 5 -P "${EXTER}/cache/sources/component_cix-$BRANCH/debs/" \
https://github.com/orangepi-xunlong/component_cix-${BRANCH}/releases/download/v1.1.0/cix-npu-onnxruntime_1.1.0_arm64.deb
fi
fi
fi
[[ $BUILD_OPT =~ kernel|image ]] && fetch_from_repo "$KERNELSOURCE" "$KERNELDIR" "$KERNELBRANCH" "yes"