From 9a26a03f882980e3798043120541361e88f3d510 Mon Sep 17 00:00:00 2001 From: sususu98 Date: Fri, 12 Dec 2025 11:43:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E8=A3=85=20Bun=20=E5=89=8D?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=20unzip=20=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setup.sh b/setup.sh index 73fc97c..d1bad47 100755 --- a/setup.sh +++ b/setup.sh @@ -92,6 +92,18 @@ install_bun() { warning "未检测到 Node.js 或 Bun" info "推荐安装 Bun(轻量级 JavaScript 运行时)" echo "" + + # 检测 unzip 依赖 + if ! command_exists unzip; then + error "安装 Bun 需要 unzip,请先安装:" + echo "" + echo -e " Ubuntu/Debian: ${CYAN}sudo apt-get install unzip${NC}" + echo -e " Alpine: ${CYAN}apk add unzip${NC}" + echo -e " CentOS/RHEL: ${CYAN}sudo yum install unzip${NC}" + echo "" + return 1 + fi + echo -e " 安装命令: ${CYAN}curl -fsSL https://bun.sh/install | bash${NC}" echo ""