@echo off setlocal cd /d "%~dp0" where xmake >nul 2>&1 if errorlevel 1 ( echo xmake was not found on PATH. echo Install xmake 3.0.0 or newer from https://xmake.io exit /b 1 ) echo Building F4SEPluginTemplate... xmake build if errorlevel 1 ( echo Build failed. exit /b 1 ) echo. echo Build succeeded. echo Plugin staged to: package\F4SE\Plugins\ exit /b 0