Skip to content
This repository was archived by the owner on Nov 22, 2020. It is now read-only.

Commit da6ad17

Browse files
committed
added install line for node serve; added games to poc launcher
1 parent 090c530 commit da6ad17

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

build.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for %%m in (v2c-desktop-controller-linux v2c-dispatcher v2c-dashboard-backend) d
1515
)
1616

1717
rem build the python modules
18-
for %%p in (pyaudio playsound pocketsphinx SpeechRecognition pydub websocket-client websocket keyboard pycaw) do (
18+
for %%p in (pyaudio playsound pocketsphinx SpeechRecognition pydub websocket-client websocket keyboard pycaw pystray) do (
1919
echo Checking for %%p
2020
pip list | find "%%p">nul
2121
if errorlevel 1 pip install "%%p"
@@ -28,6 +28,7 @@ for %%n in (v2c-dashboard) do (
2828
npm install
2929
cd ..
3030
)
31+
npm install -g serve
3132

3233
echo Done.
3334
@echo on

src/main/java/edu/uco/cs/v2c/poc/ModuleID.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ public enum ModuleID {
77
RECOGNIZER(ProcessType.PYTHON_PROCESS, "v2c-recognizer/Recognizer/speech.py", false),
88
DESKTOP_CONTROLLER(ProcessType.JAVA_PROCESS, "v2c-desktop-controller-linux/build/libs/v2c-desktop-controller-linux.jar", false),
99
DASHBOARD_BACKEND(ProcessType.JAVA_PROCESS, "v2c-dashboard-backend/build/libs/v2c-dashboard-backend.jar", true),
10-
DASHBOARD_FRONTEND(ProcessType.NPM_PROCESS, "v2c-dashboard", false);
10+
DASHBOARD_FRONTEND(ProcessType.NPM_PROCESS, "v2c-dashboard", false),
11+
GAMES(ProcessType.SERVE_PROCESS, "v2c-gaming-poc", false);
1112

1213
private boolean hasTunnel = false;
1314
private String name = null;

src/main/java/edu/uco/cs/v2c/poc/control/ModuleHandler.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public class ModuleHandler implements Runnable {
2525
public static enum ProcessType {
2626
JAVA_PROCESS("java"),
2727
NPM_PROCESS("npm"),
28-
PYTHON_PROCESS("python");
28+
PYTHON_PROCESS("python"),
29+
SERVE_PROCESS("serve");
2930

3031
private String bin = null;
3132

@@ -136,6 +137,12 @@ public void setModuleBin(String moduleBin) {
136137
if(moduleTokens.length > 1)
137138
workDir = moduleBin.substring(0, moduleBin.length() - moduleTokens[moduleTokens.length - 1].length());
138139
break;
140+
case SERVE_PROCESS:
141+
commands.add(runtimeBin);
142+
commands.add("-l");
143+
commands.add("5000");
144+
workDir = moduleBin;
145+
break;
139146
default:
140147
break;
141148
}

0 commit comments

Comments
 (0)