forked from Fairyon/webvisual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.bat
32 lines (29 loc) · 836 Bytes
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
echo Checking all prerequisites...
set node_exists=
for %%e in (%PATHEXT%) do (
for %%X in (node%%e) do (
if not defined node_exists (
set node_exists=%%~$PATH:X
)
)
)
if not defined node_exists goto NONODE
call :SETUP
goto END
:NONODE
echo node.js is not installed or in PATH!
echo %PATHEXT%
exit
:SETUP
echo Install 'bower'. This can take a moment ...
cmd /C "cd %~dp0 & npm.cmd install -g bower"
echo Install 'electron'. This can take a moment ...
cmd /C "cd %~dp0 & npm.cmd install -g --force electron"
echo Update Submodules. This can take a moment ...
cmd /C "cd %~dp0 & git submodule update --init --recursive"
echo Install node dependencies. This can take a moment ...
cmd /C "cd %~dp0/src & npm.cmd update -g"
cmd /C "cd %~dp0/src & npm.cmd install"
goto:eof
:END