You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.3 KiB

@echo off
setlocal EnableExtensions
pushd "%~dp0\..\.."
echo ChatGUI Build Script for MSYS2 UCRT64
echo ===========================================
echo.
set "MSYS2_PATH=C:\msys64"
if not "%MSYS2_ROOT%"=="" set "MSYS2_PATH=%MSYS2_ROOT%"
if not "%MSYS2%"=="" set "MSYS2_PATH=%MSYS2%"
if not exist "%MSYS2_PATH%\msys2_shell.cmd" (
echo [ERROR] MSYS2 not found at %MSYS2_PATH%
echo Please install MSYS2 from https://www.msys2.org/
echo or set MSYS2_ROOT environment variable.
pause
popd
exit /b 1
)
echo [INFO] MSYS2 found at: %MSYS2_PATH%
echo [INFO] Starting build...
echo.
call "%MSYS2_PATH%\msys2_shell.cmd" -ucrt64 -here -defterm -no-start -c "set -o pipefail; cd tools/chatgui && bash build.sh --installer 2>&1 | tee build_win.log"
set "BUILD_RESULT=%ERRORLEVEL%"
echo.
echo ===========================================
if %BUILD_RESULT% == 0 (
echo [SUCCESS] Build completed!
echo [INFO] Executable: tools\chatgui\build\vibechat.exe
echo [INFO] Installer: tools\chatgui\build\installer\VibeChat-*-win64-setup.exe
) else (
echo [FAILED] Build failed with error code: %BUILD_RESULT%
echo [INFO] Check tools\chatgui\build_win.log for details
)
echo ===========================================
echo.
pause
popd
endlocal & exit /b %BUILD_RESULT%