Skip to content

Commit c4be179

Browse files
richardlauMylesBorins
authored andcommitted
build: add missing files to zip and 7z packages
Add nodevars.bat, node_etw_provider.man and node_perfctr_provider.man to the zip and 7z packages. PR-URL: #8069 Reviewed-By: James M Snell <[email protected]> Reviewed-By: joaocgreis - João Reis <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent dc7bc2e commit c4be179

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vcbuild.bat

+12
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ if "%target%"=="Clean" rmdir /S /Q %~dp0deps\icu
119119

120120
call :getnodeversion || exit /b 1
121121

122+
if "%target%"=="Clean" rmdir /Q /S "%~dp0%config%\node-v%FULLVERSION%-win-%target_arch%" > nul 2> nul
123+
122124
@rem Set environment for msbuild
123125

124126
if defined target_env if "%target_env%" NEQ "vc2015" goto vc-set-2013
@@ -235,6 +237,16 @@ copy /Y ..\deps\npm\bin\npm node-v%FULLVERSION%-win-%target_arch%\ > nul
235237
if errorlevel 1 echo Cannot copy npm && goto package_error
236238
copy /Y ..\deps\npm\bin\npm.cmd node-v%FULLVERSION%-win-%target_arch%\ > nul
237239
if errorlevel 1 echo Cannot copy npm.cmd && goto package_error
240+
copy /Y ..\tools\msvs\nodevars.bat node-v%FULLVERSION%-win-%target_arch%\ > nul
241+
if errorlevel 1 echo Cannot copy nodevars.bat && goto package_error
242+
if not defined noetw (
243+
copy /Y ..\src\res\node_etw_provider.man node-v%FULLVERSION%-win-%target_arch%\ > nul
244+
if errorlevel 1 echo Cannot copy node_etw_provider.man && goto package_error
245+
)
246+
if not defined noperfctr (
247+
copy /Y ..\src\res\node_perfctr_provider.man node-v%FULLVERSION%-win-%target_arch%\ > nul
248+
if errorlevel 1 echo Cannot copy node_perfctr_provider.man && goto package_error
249+
)
238250

239251
echo Creating node-v%FULLVERSION%-win-%target_arch%.7z
240252
del node-v%FULLVERSION%-win-%target_arch%.7z > nul 2> nul

0 commit comments

Comments
 (0)