#!/bin/bash # Compile the project using the Haxe compiler with the specified build.hxml configuration haxe build.hxml # Check if the compilation was successful if [ $? -eq 0 ]; then echo "Compilation successful!" else echo "Compilation failed!" fi # Run the compiled project # We need to run ApplicationMain-debug within the bin/cpp directory as the current working directory (cd ./bin/cpp; ./ApplicationMain-debug)