diff options
Diffstat (limited to 'scripts/code-web.bat')
-rw-r--r-- | scripts/code-web.bat | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/code-web.bat b/scripts/code-web.bat index 5775eccf3a1..312024c3d42 100644 --- a/scripts/code-web.bat +++ b/scripts/code-web.bat @@ -8,11 +8,15 @@ pushd %~dp0\.. :: Sync built-in extensions call yarn download-builtin-extensions -:: Download nodejs executable for remote -call yarn gulp node +:: Node executable +FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g) + +if not exist "%NODE%" ( + :: Download nodejs executable for remote + call yarn gulp node +) :: Launch Server -FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g) call "%NODE%" scripts\code-web.js %* popd |