From 3760c25eb477a9e451495eda137c5ac964c63b3c Mon Sep 17 00:00:00 2001 From: "peng.li24" <734991033@qq.com> Date: Sun, 13 Sep 2026 23:37:20 +0800 Subject: [PATCH] =?UTF-8?q?install:=20BASE=5FURL=20=E5=8F=AF=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E4=B8=8B=E8=BD=BD=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 镜像 / 内网 / file:// 离线安装用;默认仍走 GitHub releases。 (本次端到端验证即用它指向本地假源,走完 下载 → sha256 校验 → 安装 → 运行。) Co-Authored-By: Claude Code --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8597b81e..dbefa676 100755 --- a/install.sh +++ b/install.sh @@ -41,7 +41,8 @@ if [ -z "$tag" ]; then fi # ── 下载 ───────────────────────────────────────────────────────────── -base="https://github.com/$REPO/releases/download/$tag" +# BASE_URL 可覆盖下载源(镜像 / 内网 / file:// 离线安装) +base="${BASE_URL:-https://github.com/$REPO/releases/download/$tag}" tarball="kvlang-abi-$tag-$plat.tar.gz" case "$plat" in linux-*) sums=SHA256SUMS-linux ;;