Skip to content

Commit aa15c27

Browse files
committed
[fixup] improve cleaning of Release artifacts
1 parent eb496c4 commit aa15c27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vcbuild.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ goto next-arg
127127

128128
:environment-validate
129129
REM Make sure we can find python
130-
call :run-python --version > NUL
130+
call :run-python --version > NUL 2>&1
131131
if errorlevel 1 (
132132
echo Could not find python2. More information can be found at
133133
echo https://github.com/nodejs/node/blob/master/BUILDING.md#windows-1
@@ -176,12 +176,14 @@ if "%i18n_arg%"=="without-intl" set configure_flags=%configure_flags% --without-
176176

177177
if defined config_flags set configure_flags=%configure_flags% %config_flags%
178178

179+
if not "%target%"=="Clean" goto no-clean
179180
if not exist "%~dp0deps\icu" goto no-depsicu
180181
if "%target%"=="Clean" echo deleting %~dp0deps\icu
181182
if "%target%"=="Clean" rmdir /S /Q %~dp0deps\icu
182183
:no-depsicu
183184

184-
if "%target%"=="Clean" rmdir /Q /S "%~dp0%config%\node-v%FULLVERSION%-win-%target_arch%" > nul 2> nul
185+
for /d %%I IN ("%~dp0%config%\node-v*") do rmdir /Q /S "%%I"
186+
:no-clean
185187

186188
if defined noprojgen if defined nobuild if not defined sign if not defined msi goto licensertf
187189

0 commit comments

Comments
 (0)