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 23, 2022
1 parent 50d0cd5 commit 4895d42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ deps/npm/bin/npm text eol=lf
deps/npm/bin/npx text eol=lf
deps/corepack/shims/corepack text eol=lf
tools/msvs/find_python.cmd text eol=crlf
tools/msvs/node text eol=lf
4 changes: 4 additions & 0 deletions tools/msvs/node
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
# Shim for invoking node without .exe from WSL
basedir=$(dirname "$0")
"$basedir/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 4895d42

Please sign in to comment.