"Add Windows installer and driver training rewards"
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
if "%AMMC_EXE%"=="" set "AMMC_EXE=%~dp0ammc-amb.exe"
|
||||
if not exist "%AMMC_EXE%" if exist "%~dp0..\ammc-amb.exe" set "AMMC_EXE=%~dp0..\ammc-amb.exe"
|
||||
if "%DECODER_IP%"=="" set "DECODER_IP=192.168.1.11"
|
||||
for %%I in ("%~dp0..") do set "APP_DIR=%%~fI"
|
||||
if "%AMMC_EXE%"=="" set "AMMC_EXE=%APP_DIR%\AMMC\windows64\ammc-amb.exe"
|
||||
if not "%~1"=="" set "DECODER_IP=%~1"
|
||||
if "%DECODER_IP%"=="" set "DECODER_IP=192.168.1.10"
|
||||
if "%WS_PORT%"=="" set "WS_PORT=9000"
|
||||
|
||||
if not exist "%AMMC_EXE%" (
|
||||
echo [ERROR] Could not find AMMC executable:
|
||||
echo %AMMC_EXE%
|
||||
echo Set AMMC_EXE in this file or as environment variable.
|
||||
echo Expected bundled path: %APP_DIR%\AMMC\windows64\ammc-amb.exe
|
||||
echo Set AMMC_EXE as an environment variable to override it.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
start "AMMC" /min cmd /c "\"%AMMC_EXE%\" -w %WS_PORT% %DECODER_IP%"
|
||||
start "AMMC" /min "%AMMC_EXE%" -w %WS_PORT% %DECODER_IP%
|
||||
|
||||
echo [OK] AMMC started in background
|
||||
|
||||
|
||||
Reference in New Issue
Block a user