@echo off
setlocal
cd /d "%~dp0"

set "HARDWARE_LAB_BACKEND_PORT=8765"
set "HARDWARE_LAB_MSPM0_PACK=%~dp0files\packs\TexasInstruments.MSPM0G1X0X_G3X0X_DFP.1.3.1.pack"

if exist "%~dp0runtime\node.exe" (
  "%~dp0runtime\node.exe" "%~dp0backend\hardware_lab_backend.js"
) else (
  node "%~dp0backend\hardware_lab_backend.js"
)

echo.
echo Hardware Lab backend exited. Press any key to close.
pause >nul
