Files
2026-08-27 09:05:06 +08:00

25 lines
439 B
Batchfile

@echo off
setlocal EnableExtensions
cd /d "%~dp0"
title NginxMan Build
echo.
echo Building NginxMan.exe with embedded Nginx runtime...
echo.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "build.ps1"
set "BUILD_EXIT=%ERRORLEVEL%"
echo.
if "%BUILD_EXIT%"=="0" goto :SUCCESS
echo Build failed. Exit code: %BUILD_EXIT%
pause
exit /b %BUILD_EXIT%
:SUCCESS
echo Build completed.
echo Output: %CD%\bin\NginxMan.exe
pause
exit /b 0