POGOserver - Porting POGOserver to Visual Studio

This commit is contained in:
--=FurtiF™=-- 2016-10-30 20:17:22 +01:00
parent c6caa580fd
commit 33428aad9c
6 changed files with 51 additions and 14 deletions

1
.gitignore vendored
View File

@ -261,6 +261,7 @@ node_modules/
scripts/
data/
logs/
tmp/
cfg.js
.save
npm-debug.*

View File

@ -1,4 +0,0 @@
@REM start the web-api on port 9000
npm run api
"iexplore.exe" "http://localhost:9000/"
pause

View File

@ -1,3 +0,0 @@
@REM Run server Localhost
npm run boot
pause

View File

@ -1,4 +0,0 @@
@REM CMDLINE install
set LIBPROTOBUF=%CD%\protobuf
npm install node-protobuf && npm install
pause

View File

@ -1,3 +0,0 @@
@REM CMDLINE POGOserver updater
npm run update
pause

50
run.bat Normal file
View File

@ -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.