Skip to content

Commit 18017d6

Browse files
richardlaumhdawson
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 10b3f13 commit 18017d6

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
@@ -126,6 +126,8 @@ if "%target%"=="Clean" rmdir /S /Q %~dp0deps\icu
126126

127127
call :getnodeversion || exit /b 1
128128

129+
if "%target%"=="Clean" rmdir /Q /S "%~dp0%config%\node-v%FULLVERSION%-win-%target_arch%" > nul 2> nul
130+
129131
@rem Set environment for msbuild
130132

131133
if defined target_env if "%target_env%" NEQ "vc2015" goto vc-set-2013
@@ -242,6 +244,16 @@ copy /Y ..\deps\npm\bin\npm node-v%FULLVERSION%-win-%target_arch%\ > nul
242244
if errorlevel 1 echo Cannot copy npm && goto package_error
243245
copy /Y ..\deps\npm\bin\npm.cmd node-v%FULLVERSION%-win-%target_arch%\ > nul
244246
if errorlevel 1 echo Cannot copy npm.cmd && goto package_error
247+
copy /Y ..\tools\msvs\nodevars.bat node-v%FULLVERSION%-win-%target_arch%\ > nul
248+
if errorlevel 1 echo Cannot copy nodevars.bat && goto package_error
249+
if not defined noetw (
250+
copy /Y ..\src\res\node_etw_provider.man node-v%FULLVERSION%-win-%target_arch%\ > nul
251+
if errorlevel 1 echo Cannot copy node_etw_provider.man && goto package_error
252+
)
253+
if not defined noperfctr (
254+
copy /Y ..\src\res\node_perfctr_provider.man node-v%FULLVERSION%-win-%target_arch%\ > nul
255+
if errorlevel 1 echo Cannot copy node_perfctr_provider.man && goto package_error
256+
)
245257

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

0 commit comments

Comments
 (0)