From 7f6584ab644001d4fd0bcf19f7e2ce3474bf0a96 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Sun, 31 May 2026 00:07:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E6=94=B9=E4=BB=8E=20TUNA=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E5=AE=89=E8=A3=85=20Git=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E8=AE=BF=E9=97=AE=20GitHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 4d7db30..433c917 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -56,8 +56,12 @@ jobs: - name: Install Git (bash) shell: cmd run: | - where bash >nul 2>&1 || winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements + where bash >nul 2>&1 && goto done + curl -L -o "%TEMP%\git-setup.exe" https://mirrors.tuna.tsinghua.edu.cn/github-release/git-for-windows/git/LatestRelease/Git-2.49.0-64-bit.exe + "%TEMP%\git-setup.exe" /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh" + :done echo C:\Program Files\Git\bin>> %GITHUB_PATH% + echo C:\Program Files\Git\usr\bin>> %GITHUB_PATH% - name: Compile (Flutter Windows) shell: bash