diff --git a/local-tool/installer/linux/build-appimage.sh b/local-tool/installer/linux/build-appimage.sh index 8e236d6..cf721cd 100755 --- a/local-tool/installer/linux/build-appimage.sh +++ b/local-tool/installer/linux/build-appimage.sh @@ -103,9 +103,10 @@ if [ "$wheel_count" -lt 4 ]; then fi # 驗證關鍵 wheel 名稱存在(避免只下載到其他 wheel 卻缺 kp 等) +# 大小寫不敏感:KneronPLUS wheel 檔名是大寫開頭,pip 下載的是小寫 missing=() -for pkg in numpy opencv pyusb kp; do - if ! ls "$PAYLOAD_LINUX/wheels/"*${pkg}*.whl >/dev/null 2>&1; then +for pkg in numpy opencv pyusb KneronPLUS; do + if ! ls "$PAYLOAD_LINUX/wheels/" 2>/dev/null | grep -iq "$pkg"; then missing+=("$pkg") fi done @@ -113,7 +114,7 @@ if [ ${#missing[@]} -gt 0 ]; then echo "❌ 缺少關鍵 wheel:${missing[*]}" echo " 目前 wheels 目錄內容:" ls -1 "$PAYLOAD_LINUX/wheels/" 2>/dev/null | sed 's/^/ /' - echo " kp wheel 需手動放到 visiona-local/wheels/linux/(KneronPLUS SDK 非公開套件)" + echo " KneronPLUS wheel 需手動放到 visiona-local/wheels/linux/(非公開套件)" exit 1 fi