#!/usr/bin/env bash

NAME="$1"
PRESET="$2"
PROJECT_PATH="$3"

mkdir -p "$PROJECT_PATH/dist"
godot --headless --export-debug "${PRESET}" "${PROJECT_PATH}/dist/${NAME}" "${PROJECT_PATH}/project.godot"