File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ vcbuild.bat text eol=crlf
44deps /crates /vendor /** /* - text
55deps /npm /bin /npm text eol =lf
66deps /npm /bin /npx text eol =lf
7+ tools /msvs /shims /node text eol =lf
78deps /corepack /shims /corepack text eol =lf
89tools /msvs /find_python.cmd text eol =crlf
910doc /** /* .md text eol =lf
Original file line number Diff line number Diff line change 6666 Description =" !(loc.NodeRuntime_Description)"
6767 AllowAbsent =" no" >
6868 <ComponentRef Id =" NodeExecutable" />
69+ <ComponentRef Id =" NodeBashShim" />
6970 <ComponentRef Id =" NodeRegistryEntries" />
7071 <ComponentRef Id =" NodeVarsScript" />
7172 <ComponentRef Id =" NodeStartMenu" />
142143 Value =" $(var.ProductVersion)" />
143144 </Component >
144145
146+ <Component Id =" NodeBashShim" >
147+ <File Id =" node" KeyPath =" yes" Source =" $(var.RepoDir)\tools\msvs\shims\node" />
148+ </Component >
149+
145150 <Component Id =" NodeVarsScript" >
146151 <File Id =" nodevars.bat" KeyPath =" yes" Source =" $(var.RepoDir)\tools\msvs\nodevars.bat" />
147152 </Component >
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ # This allows calling node (without .exe) from WSL bash
4+
5+ WIN_NODE_DIR=$( cd " $( dirname " $0 " ) " && pwd)
6+ WIN_NODE_EXE=" $WIN_NODE_DIR /node.exe"
7+
8+ exec " $WIN_NODE_EXE " " $@ "
Original file line number Diff line number Diff line change @@ -553,6 +553,8 @@ copy /Y ..\tools\msvs\nodevars.bat %TARGET_NAME%\ > nul
553553if errorlevel 1 echo Cannot copy nodevars.bat && goto package_error
554554copy /Y ..\tools\msvs\install_tools\*.* %TARGET_NAME% \ > nul
555555if errorlevel 1 echo Cannot copy install_tools scripts && goto package_error
556+ copy /Y ..\tools\msvs\shims\*.* %TARGET_NAME% \ > nul
557+ if errorlevel 1 echo Cannot copy shims && goto package_error
556558if defined dll (
557559 copy /Y libnode.dll %TARGET_NAME% \ > nul
558560 if errorlevel 1 echo Cannot copy libnode.dll && goto package_error
You can’t perform that action at this time.
0 commit comments