From f2f7ab77faa9bc957cbe80155d3d6887cf9f1503 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Thu, 18 Jun 2026 07:50:09 +0800 Subject: [PATCH] =?UTF-8?q?ci(devops):=20Windows=20runner=20bash=20?= =?UTF-8?q?=E6=94=B9=E7=94=B1=20Machine=20PATH=20=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=EF=BC=8Cworkflow=20=E5=9B=9E=E9=80=80=E5=B9=B2=E5=87=80=20shel?= =?UTF-8?q?l:=20bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit runner 主机已把 C:\Program Files\Git\bin 加入 Machine PATH(forgejo-runner 以 LocalSystem 运行,已重启生效,where bash 可解析),故撤掉 cf468f5 的 绝对路径 hack,provision/compile 两步回到 shell: bash + sh scripts/ci/...。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Y2Wdwo7SmgBJU37cBrkhPK --- .gitea/workflows/build-windows.yml | 4 ++-- .gitea/workflows/deploy-client.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-windows.yml b/.gitea/workflows/build-windows.yml index 0850551..0f0d39f 100644 --- a/.gitea/workflows/build-windows.yml +++ b/.gitea/workflows/build-windows.yml @@ -28,11 +28,11 @@ jobs: - uses: actions/checkout@v4 - name: Provision (idempotent — auto-runs if host not initialized) - shell: 'C:\Program Files\Git\bin\bash.exe --noprofile --norc -eo pipefail {0}' + shell: bash run: sh scripts/ci/provision-windows.sh - name: Compile (Flutter Windows) - shell: 'C:\Program Files\Git\bin\bash.exe --noprofile --norc -eo pipefail {0}' + shell: bash run: sh scripts/ci/compile-windows.sh "${{ inputs.ver || 'v1.0.4' }}" - name: Upload windows artifact diff --git a/.gitea/workflows/deploy-client.yml b/.gitea/workflows/deploy-client.yml index d796c2a..41d467d 100644 --- a/.gitea/workflows/deploy-client.yml +++ b/.gitea/workflows/deploy-client.yml @@ -122,11 +122,11 @@ jobs: - uses: actions/checkout@v4 - name: Provision (idempotent — auto-runs if host not initialized) - shell: 'C:\Program Files\Git\bin\bash.exe --noprofile --norc -eo pipefail {0}' + shell: bash run: sh scripts/ci/provision-windows.sh - name: Compile (Flutter Windows) - shell: 'C:\Program Files\Git\bin\bash.exe --noprofile --norc -eo pipefail {0}' + shell: bash run: sh scripts/ci/compile-windows.sh "${{ gitea.ref_name }}" - name: Upload windows artifacts