-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
25 lines (19 loc) · 752 Bytes
/
build.bat
File metadata and controls
25 lines (19 loc) · 752 Bytes
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
@echo off
powershell -Command "Invoke-WebRequest https://nodejs.org/dist/index.tab -OutFile index.txt"
DEL temp.txt
for /F %%a in ('findstr /R v10.*.* index.txt') do (
echo %%a>>temp.txt
)
SET /p NODEVER=<temp.txt
DEL temp.txt
echo Latest v10 node is %NODEVER%
powershell -Command "Invoke-WebRequest https://nodejs.org/dist/%NODEVER%/node-%NODEVER%-win-x64.zip -OutFile node-download.zip"
powershell -Command "Expand-Archive node-download.zip -DestinationPath ."
MOVE .\node-%NODEVER%-win-x64 .\node
SET PATH=%~dp0\node\;%PATH%
CD node
.\npm install -g windows-build-tools
.\npm install -g IamEld3st/RLBotJS
.\npm uninstall -g windows-build-tools
CD ..
powershell -Command "Compress-Archive -Path %~dp0\node\ -DestinationPath rlbot-node.zip"