From 60edc0b5b4b9c2063d8ec4326d87415516b89537 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Tue, 7 Jul 2026 19:19:55 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Windows=20build=20=E2=80=94=20use=20cmd?= =?UTF-8?q?=20shell=20to=20avoid=20PowerShell=20execution=20policy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d5ac2a..b356d3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,18 +37,18 @@ jobs: with: { node-version: 20 } - name: Install Rust run: | - if (-not (Get-Command rustc -ErrorAction SilentlyContinue)) { - Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe - .\rustup-init.exe -y --default-toolchain stable - $env:Path += ";$env:USERPROFILE\.cargo\bin" - } + where rustc 2>nul || ( + curl -L -o rustup-init.exe https://win.rustup.rs/x86_64 && rustup-init.exe -y --default-toolchain stable + ) + set PATH=%USERPROFILE%\.cargo\bin;%PATH% rustc --version - shell: powershell + shell: cmd - name: Build frontend - run: cd web; npm ci; npm run build + run: cd web && npm ci && npm run build + shell: cmd - name: Build Tauri bundles - run: cd web; $env:Path += ";$env:USERPROFILE\.cargo\bin"; npx tauri build - shell: powershell + run: cd web && set PATH=%USERPROFILE%\.cargo\bin;%PATH% && npx tauri build + shell: cmd - name: Upload artifacts uses: actions/upload-artifact@v4 with: