cirnogodot/BuildPublish.bat
2026-02-07 22:31:11 +01:00

29 lines
836 B
Batchfile

@echo off
REM Launcher for Cirno No Reason Build and Publish Script
REM Find godot.exe in PATH and set full path
echo Searching for godot.exe in PATH...
for /f "delims=" %%i in ('where godot.exe 2^>nul') do set "GODOT=%%i" & goto :found
echo ERROR: godot.exe not found in PATH!
echo Please ensure Godot is installed and in your PATH, or set GODOT environment variable.
pause
exit /b 1
:found
echo Using GODOT=%GODOT%
echo Godot executable found.
echo.
REM Launch PowerShell and keep the window open (-NoExit) so output stays visible
powershell.exe -NoExit -ExecutionPolicy Bypass -File "%~dp0BuildPublish.ps1"
if %ERRORLEVEL% NEQ 0 (
echo.
echo Script execution failed with error code %ERRORLEVEL%
pause
) else (
echo.
echo Script completed successfully. Press any key to close this window.
pause >nul
)