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