From abeb8dc3d73d04237f54be8e6f912a1d4196672e Mon Sep 17 00:00:00 2001 From: leeboby Date: Mon, 22 Dec 2025 17:14:31 +0800 Subject: [PATCH] Cix: Fix download issue for component_cix --- scripts/main.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/main.sh b/scripts/main.sh index 64de075cec61..c6ab6d3673ac 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -459,7 +459,23 @@ if [[ ${IGNORE_UPDATES} != yes ]]; then if [[ $BOARDFAMILY == "cix" ]]; then - fetch_from_repo "https://github.com/orangepi-xunlong/component_cix-$BRANCH.git" "${EXTER}/cache/sources/component_cix-$BRANCH" "branch:main" + 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