From 5045f066f0a6188ab05db5095cdd41090469b04e Mon Sep 17 00:00:00 2001 From: yanghuanglin Date: Fri, 21 Nov 2025 18:16:03 +0800 Subject: [PATCH] =?UTF-8?q?wget=E6=94=B9=E6=88=90curl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/BuildLauncher.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/BuildLauncher.yml b/.github/workflows/BuildLauncher.yml index 5330b2d..fd1d8c9 100644 --- a/.github/workflows/BuildLauncher.yml +++ b/.github/workflows/BuildLauncher.yml @@ -90,7 +90,7 @@ jobs: else # 如果是URL,则下载 echo "检测到URL,开始下载..." - wget -O ${{ env.MANAGED_ZIP_FILE }} "$MANAGED_URL" + curl -L -o ${{ env.MANAGED_ZIP_FILE }} "$MANAGED_URL" # 验证下载是否成功 if [ ! -f "${{ env.MANAGED_ZIP_FILE }}" ]; then @@ -122,7 +122,7 @@ jobs: echo "SPT Version: $SPT_VERSION" # 获取客户端版本 - CLIENT_VERSION=$(wget -qO- "https://raw.githubusercontent.com/sp-tarkov/server-csharp/develop/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/core.json" | jq -r '.compatibleTarkovVersion') + CLIENT_VERSION=$(curl -s "https://raw.githubusercontent.com/sp-tarkov/server-csharp/develop/Libraries/SPTarkov.Server.Assets/SPT_Data/configs/core.json" | grep -o '"compatibleTarkovVersion":[[:space:]]*"[^"]*"' | sed -E 's/.*: *"([^"]*)".*/\1/') echo "client_version=$CLIENT_VERSION" >> $GITHUB_OUTPUT echo "Client Version: $CLIENT_VERSION"