"Add Windows installer and driver training rewards"

This commit is contained in:
larssand
2026-08-24 14:48:49 +02:00
parent 4c0e94bc50
commit de7b4adfe0
21 changed files with 2068 additions and 210 deletions

View File

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