-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathinstall.stable.cmd
More file actions
executable file
·62 lines (46 loc) · 1.9 KB
/
Copy pathinstall.stable.cmd
File metadata and controls
executable file
·62 lines (46 loc) · 1.9 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
:: nodeGame install from npm script for Windows
:: Copyright(c) 2014 Stefano Balietti
:: MIT Licensed
:: Enable local extensions (more similar to Bash).
setlocal enableextensions enabledelayedexpansion
:: The most recent nodejs installer has a bug, this line fixes it.
:: Solution taken from http://stackoverflow.com/q/25093276
if not exist "%APPDATA%\npm" mkdir "%APPDATA%\npm" || exit /b
:: Clone the main repo.
git clone https://github.com/nodeGame/nodegame.git || exit /b
cd nodegame || exit /b
:: Install the dependencies.
call npm install nodegame-client || exit /b
call npm install nodegame-server || exit /b
call npm install nodegame-window || exit /b
call npm install nodegame-widgets || exit /b
call npm install JSUS || exit /b
call npm install NDDB || exit /b
call npm install shelf.js || exit /b
call npm install descil-mturk || exit /b
call npm install nodegame-db || exit /b
call npm install nodegame-mongodb || exit /b
call npm install smoosh || exit /b
call npm install ya-csv || exit /b
call npm install commander || exit /b
:: docker not installed
:: Entering nodegame-server directory
cd node_modules/nodegame-server/ || exit /b
:: Patching express connect.
xcopy /Y bin\static.js node_modules\express\node_modules\connect\lib\middleware\static.js || exit /b
:: Rebuild js files.
cd bin/ || exit /b
node make build-client -a -o nodegame-full || exit /b
:: Install ultimatum game.
cd ../../../ || exit /b
git clone https://github.com/nodeGame/ultimatum games/ultimatum || exit /b
:: Execute the following commands to try out the ultimatum game.
:: Start the ultimatum game.
:: node start/ultimatum-server
:: Open two browser tabs for two players at the address:
:: http://localhost:8080/ultimatum/
:: Open the admin console at:
:: http://localhost:8080/ultimatum/monitor.htm
:: See the wiki documentation to modify settings.
exit /b
:: End of script.