From 4561ee4cc3b758edd9847c48aecd4bcbe9230391 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 6 Jul 2026 22:56:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20fetch-desktop-bin=20curl=20=E5=8A=A0?= =?UTF-8?q?=E5=9B=BA(windows=20=E5=A4=96=E7=BD=91=20GFW=20=E6=8A=96?= =?UTF-8?q?=E5=8A=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wintun.net / github 下载偶发超时(curl 28)。retry 3→8、加 --retry-all-errors + --retry-connrefused + --connect-timeout 20,拉长重试窗口以命中可达时刻。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u --- app/kernel/fetch-desktop-bin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/kernel/fetch-desktop-bin.sh b/app/kernel/fetch-desktop-bin.sh index d1f731b..3a35a87 100644 --- a/app/kernel/fetch-desktop-bin.sh +++ b/app/kernel/fetch-desktop-bin.sh @@ -140,7 +140,7 @@ fi # ── 下载二进制压缩包 ────────────────────────────────────────────────────────── printf '==> 下载 %s…\n' "${ARCHIVE_FILE}" -curl -fSL --retry 3 --retry-delay 2 \ +curl -fSL --retry 8 --retry-delay 5 --retry-connrefused --retry-all-errors --connect-timeout 20 \ -o "${ARCHIVE_CACHE}" \ "${ARCHIVE_URL}" @@ -197,7 +197,7 @@ if [[ "${TARGET_OS}" == "windows" ]]; then if [[ "${FORCE}" == false && -f "${WINTUN_OUT}" ]]; then printf '✓ wintun.dll 已存在,跳过(传 --force 重新下载)\n' else - curl -fSL --retry 3 --retry-delay 2 \ + curl -fSL --retry 8 --retry-delay 5 --retry-connrefused --retry-all-errors --connect-timeout 20 \ -o "${WINTUN_ZIP_CACHE}" \ "${WINTUN_URL}"