From 23de2435984e3ba28225779e3e3f4b68d0d54f19 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Sun, 31 May 2026 00:01:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20Windows=20=E5=AE=89=E8=A3=85=20Git?= =?UTF-8?q?=20=E6=94=B9=E7=94=A8=20cmd=EF=BC=8C=E9=81=BF=E5=85=8D=20PowerS?= =?UTF-8?q?hell=20=E6=89=A7=E8=A1=8C=E7=AD=96=E7=95=A5=E9=99=90=E5=88=B6?= 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 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b2c14d5..4d7db30 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -54,13 +54,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Git (bash) - shell: powershell + shell: cmd run: | - if (-not (Get-Command bash -ErrorAction SilentlyContinue)) { - winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements - $env:PATH = "C:\Program Files\Git\bin;$env:PATH" - [System.Environment]::SetEnvironmentVariable('PATH', $env:PATH, 'Machine') - } + where bash >nul 2>&1 || winget install Git.Git --source winget --accept-source-agreements --accept-package-agreements + echo C:\Program Files\Git\bin>> %GITHUB_PATH% - name: Compile (Flutter Windows) shell: bash