I managed to create a simple build configuration for my project that builds and also launches it. However the console freezes during the execution and it only prints the messages generated by the application after I close it. The build configuration looks like this:
{
"cmd": ["${project_path:${folder}}/run.bat"]
}
The run.but just runs the application like this:
"%MOAI_BIN%\moai" "config\config.lua" "main.lua"