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 <jasnell@gmail.com> Reviewed-By: joaocgreis - João Reis <reis@janeasystems.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 10b3f13 commit 18017d6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎vcbuild.bat‎

Lines changed: 12 additions & 0 deletions
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%">nul2>nul
130+
129131
@rem Set environment for msbuild
130132

131133
ifdefined 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
iferrorlevel1echo Cannot copy npm &&goto package_error
243245
copy /Y ..\deps\npm\bin\npm.cmd node-v%FULLVERSION%-win-%target_arch%\ >nul
244246
iferrorlevel1echo Cannot copy npm.cmd &&goto package_error
247+
copy /Y ..\tools\msvs\nodevars.bat node-v%FULLVERSION%-win-%target_arch%\ >nul
248+
iferrorlevel1echo Cannot copy nodevars.bat &&goto package_error
249+
ifnotdefined noetw (
250+
copy /Y ..\src\res\node_etw_provider.man node-v%FULLVERSION%-win-%target_arch%\ >nul
251+
iferrorlevel1echo Cannot copy node_etw_provider.man &&goto package_error
252+
)
253+
ifnotdefined noperfctr (
254+
copy /Y ..\src\res\node_perfctr_provider.man node-v%FULLVERSION%-win-%target_arch%\ >nul
255+
iferrorlevel1echo 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 >nul2>nul

0 commit comments

Comments
 (0)