From 1139e90fc394f1f870e972da6f78eb38f096aabd Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Tue, 7 Jul 2026 19:46:27 +0000 Subject: [PATCH] fix: use powershell -Command for download, keep shell:cmd for execution --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b356d3a..0bb130a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,9 +37,8 @@ jobs: with: { node-version: 20 } - name: Install Rust run: | - where rustc 2>nul || ( - curl -L -o rustup-init.exe https://win.rustup.rs/x86_64 && rustup-init.exe -y --default-toolchain stable - ) + powershell -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe" + rustup-init.exe -y --default-toolchain stable set PATH=%USERPROFILE%\.cargo\bin;%PATH% rustc --version shell: cmd