Skip to content

Commit

Permalink
build: shim for invoking node w/o .exe from WSL
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hrishikesh-kadam committed Jul 22, 2022
1 parent 5fbf33e commit 7295f00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/msvs/node
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
# Shim for invoking node without .exe from WSL
node.exe "$@"
2 changes: 2 additions & 0 deletions vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ mkdir %TARGET_NAME%\node_modules > nul 2>nul

copy /Y node.exe %TARGET_NAME%\ > nul
if errorlevel 1 echo Cannot copy node.exe && goto package_error
copy /Y ..\tools\msvs\node %TARGET_NAME%\ > nul
if errorlevel 1 echo Cannot copy node && goto package_error
copy /Y ..\LICENSE %TARGET_NAME%\ > nul
if errorlevel 1 echo Cannot copy LICENSE && goto package_error
copy /Y ..\README.md %TARGET_NAME%\ > nul
Expand Down

0 comments on commit 7295f00

Please sign in to comment.