-
Notifications
You must be signed in to change notification settings - Fork 0
/
jarviz-setup-alt.bat
22 lines (22 loc) · 1.08 KB
/
jarviz-setup-alt.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit )
schtasks /delete /TN jarviz-receiver /F ^
& taskkill /F /IM node.exe ^
& @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" ^
& start /wait msiexec.exe /i https://nodejs.org/dist/v10.15.3/node-v10.15.3-x64.msi /passive ^
& set path "%path%;C:\Program Files\nodejs\;" ^
& choco upgrade -y git -params '"/GitAndUnixToolsOnPath"' ^
& choco upgrade -y vscode ^
& choco upgrade -y python2 visualstudio2017-workload-vctools ^
& RefreshEnv ^
& rmdir c:\jarviz-receiver\ /q /s ^
& mkdir c:\jarviz-receiver ^
& cd c:\jarviz-receiver ^
& git clone https://github.com/dmwallace/jarviz-receiver.git . ^
& git checkout window-control ^
& rmdir C:\etc\.pm2\ /q /s ^
& SET PM2_HOME=C:\etc\.pm2 ^
& SETX PM2_HOME C:\etc\.pm2 /m ^
& npm install -g node-gyp ^
& npm install -g pm2@3 ^
& npm install
pause