Skip to content

Commit

Permalink
ci: use call instead of cmd /C (electron#23985)
Browse files Browse the repository at this point in the history
Since we want to import the environment change from RefreshEnv.cmd
we also want to share the same execution context of the
caller.
  • Loading branch information
thypon authored and sentialx committed Jul 30, 2020
1 parent 2d44745 commit 7c9b88e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/setup-win-for-dev.bat
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

REM Install nodejs python git and yarn needed dependencies
choco install -y nodejs python2 git yarn windows-sdk-10-version-1903-windbg
cmd /c C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
SET PATH=C:\Python27\;C:\Python27\Scripts;%PATH%

pip install pywin32
cmd /c C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
pip2 install pywin32

REM Setup Depot Tools
Expand Down

0 comments on commit 7c9b88e

Please sign in to comment.