Fix Windows release job: WebView2 step used CMD syntax under PowerShell shell - #60
Closed
markmybytes with Copilot wants to merge 2 commits into
Closed
Fix Windows release job: WebView2 step used CMD syntax under PowerShell shell#60markmybytes with Copilot wants to merge 2 commits into
markmybytes with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: markmybytes <71750702+markmybytes@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing Windows release job in build_and_release.yml
Fix Windows release job: WebView2 step used CMD syntax under PowerShell shell
Sep 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Download and extract WebView2 runtimestep inbuild_and_release.ymlfailed onwindows-latestbecause it had no explicitshell:set, defaulting topwsh, while its commands (mkdir,rmdir /s /q) were written forcmd. PowerShell rejectedrmdir /s /q extwithA positional parameter cannot be found that accepts argument '/q', breaking the release build.Changes
shell: pwshexplicitly on the step to remove ambiguity about which shell executes it.cd→Set-Locationmkdir→New-Item -ItemType Directory -Forcemove→Move-Item -Forcermdir /s /q→Remove-Item -Recurse -Forcedel→Remove-Item -ForceOther steps in the workflow relying on
mkdir/cdwere left untouched since those are valid PowerShell aliases and don't error out; onlyrmdir /s /qused CMD-only flags. Packaging behavior (download, extract, move intointernals\bin\WebView2, cleanup) is unchanged.