diff --git a/build.sh b/build.sh index 097e8ec..ebb49df 100644 --- a/build.sh +++ b/build.sh @@ -163,6 +163,8 @@ for m in appbase rbac pcpool pcc storage_mgr image_mgr; do ln -sfn "${PKGDIR}/${m}/wwwroot" "${CDIR}/wwwroot/${m}" 2>/dev/null || true done ln -sfn "${PKGDIR}/pccs/wwwroot" "${CDIR}/wwwroot/pccs" 2>/dev/null || true +# 确保根级 index.html 可访问 +cp -f "${PKGDIR}/pccs/wwwroot/index.html" "${CDIR}/wwwroot/index.html" 2>/dev/null || true # bricks if [ -f "${PKGDIR}/bricks/build.sh" ]; then (cd "${PKGDIR}/bricks" && npm install --silent 2>/dev/null && bash build.sh 2>&1 | tail -2) || true