Skip to content

Commit 7295f00

Browse files
build: shim for invoking node w/o .exe from WSL
This issue has been described in - #43861 Reason for using build subsystem - Shims will be just copied in the stage_package label of vcbuild.bat Fixes: #43861
1 parent 5fbf33e commit 7295f00

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tools/msvs/node

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
# Shim for invoking node without .exe from WSL
3+
node.exe "$@"

vcbuild.bat

+2
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ mkdir %TARGET_NAME%\node_modules > nul 2>nul
440440

441441
copy /Y node.exe %TARGET_NAME%\ > nul
442442
if errorlevel 1 echo Cannot copy node.exe && goto package_error
443+
copy /Y ..\tools\msvs\node %TARGET_NAME%\ > nul
444+
if errorlevel 1 echo Cannot copy node && goto package_error
443445
copy /Y ..\LICENSE %TARGET_NAME%\ > nul
444446
if errorlevel 1 echo Cannot copy LICENSE && goto package_error
445447
copy /Y ..\README.md %TARGET_NAME%\ > nul

0 commit comments

Comments
 (0)