This commit is contained in:
parent
f213c958f4
commit
f059715b41
3 changed files with 20 additions and 5 deletions
8
run.bat
8
run.bat
|
@ -5,6 +5,7 @@ rem Initialize variables
|
|||
set SKIP_CONFIG=""
|
||||
set PORT=""
|
||||
set DOMAIN=""
|
||||
set CONFIG_FILE=""
|
||||
set BUILD_OUTPUT=qgato.exe
|
||||
|
||||
rem Parse arguments
|
||||
|
@ -22,6 +23,12 @@ if "%~1"=="--domain" (
|
|||
shift
|
||||
goto parse_args
|
||||
)
|
||||
if "%~1"=="--config" (
|
||||
set CONFIG_FILE=%~2
|
||||
shift
|
||||
shift
|
||||
goto parse_args
|
||||
)
|
||||
if "%~1"=="--skip-config-check" (
|
||||
set SKIP_CONFIG=--skip-config-check
|
||||
shift
|
||||
|
@ -60,6 +67,7 @@ rem Construct the command
|
|||
set CMD=%BUILD_OUTPUT% !SKIP_CONFIG!
|
||||
if not "%PORT%"=="" set CMD=!CMD! --port %PORT%
|
||||
if not "%DOMAIN%"=="" set CMD=!CMD! --domain %DOMAIN%
|
||||
if not "%CONFIG_FILE%"=="" set CMD=!CMD! --config %CONFIG_FILE%
|
||||
|
||||
rem Informative output
|
||||
echo Starting application with command: !CMD!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue