diff --git a/.gitignore b/.gitignore index 24b18e6..927332a 100644 --- a/.gitignore +++ b/.gitignore @@ -261,6 +261,7 @@ node_modules/ scripts/ data/ logs/ +tmp/ cfg.js .save npm-debug.* diff --git a/run-api-windows.bat b/run-api-windows.bat deleted file mode 100644 index ec6d8dd..0000000 --- a/run-api-windows.bat +++ /dev/null @@ -1,4 +0,0 @@ -@REM start the web-api on port 9000 -npm run api -"iexplore.exe" "http://localhost:9000/" -pause \ No newline at end of file diff --git a/run-bot-windows.bat b/run-bot-windows.bat deleted file mode 100644 index 68a8d5e..0000000 --- a/run-bot-windows.bat +++ /dev/null @@ -1,3 +0,0 @@ -@REM Run server Localhost -npm run boot -pause \ No newline at end of file diff --git a/run-install-windows.bat b/run-install-windows.bat deleted file mode 100644 index a523355..0000000 --- a/run-install-windows.bat +++ /dev/null @@ -1,4 +0,0 @@ -@REM CMDLINE install -set LIBPROTOBUF=%CD%\protobuf -npm install node-protobuf && npm install -pause \ No newline at end of file diff --git a/run-update-windows.bat b/run-update-windows.bat deleted file mode 100644 index 4dba78b..0000000 --- a/run-update-windows.bat +++ /dev/null @@ -1,3 +0,0 @@ -@REM CMDLINE POGOserver updater -npm run update -pause \ No newline at end of file diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..b68f755 --- /dev/null +++ b/run.bat @@ -0,0 +1,50 @@ +CLS +@ECHO off +:init +ECHO. +TYPE %CD%\.greet +ECHO. +ECHO. +ECHO 1 - Run Install +ECHO 2 - Run POGOserver +ECHO 3 - Run Web-API +ECHO 4 - Run POGOserver Update +ECHO Q - EXIT +ECHO. +CHOICE /C:1234Q /M "Please select a control:" +IF ERRORLEVEL 5 GOTO exit +IF ERRORLEVEL 4 GOTO four +IF ERRORLEVEL 3 GOTO three +IF ERRORLEVEL 2 GOTO two +IF ERRORLEVEL 1 GOTO one +GOTO end + +:one +ECHO POGOserver Install and build +SET LIBPROTOBUF=%CD%\protobuf +npm install node-protobuf && npm install +GOTO end + +:two +ECHO Run POGOserver Localhost +npm run boot +GOTO end + +:three +ECHO Start POGOserver web-api on port 9000 +npm run api +GOTO end + +:four +ECHO POGOserver updater +npm run update + +:exit +CHOICE /M "Do yo really want to quit" +IF ERRORLEVEL 2 GOTO init + +:end +ECHO. +ECHO. +PAUSE +ECHO.