From 042d05245e3d336925d02ee0ed59edd0e167285c Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Tue, 1 Sep 2026 08:42:02 +0800 Subject: [PATCH] ci(windows): build inside the MSVC developer shell msvc-dev-cmd sets the env but rustc still resolved link.exe to Git's GNU coreutils link (C:\Program Files\Git\usr\bin\link.exe), so build-script linking failed with 'extra operand'. Run the tauri build in a cmd shell that sources vcvars64.bat so PATH/LIB/INCLUDE point at the real MSVC toolchain in the same process. --- .gitea/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 13cb0f2..9e94866 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -235,8 +235,10 @@ jobs: arch: x64 - name: Build installers - shell: bash - run: bun run --filter gridline-desktop tauri build + shell: cmd + run: | + call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" + bun run --filter gridline-desktop tauri build - name: Create release and upload Windows assets shell: bash