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: