Check for errors in build-windows.bat so CI job fails if build fails

This commit is contained in:
Adam Honse
2025-12-06 13:38:14 -06:00
parent 0b5010cda6
commit 0721f643c4

View File

@@ -58,16 +58,28 @@ goto bits_done
::---------------------------------------------------------::
qmake OpenRGB.pro CONFIG-=debug_and_release CONFIG+=release
IF %ERRORLEVEL% NEQ 0 (
EXIT /B %ERRORLEVEL%
)
::---------------------------------------------------------::
:: Run jom to execute the build ::
::---------------------------------------------------------::
jom
IF %ERRORLEVEL% NEQ 0 (
EXIT /B %ERRORLEVEL%
)
::---------------------------------------------------------::
:: Run windeployqt to copy the Qt dll files ::
::---------------------------------------------------------::
windeployqt --no-patchqt --no-quick-import --no-translations --no-system-d3d-compiler --no-compiler-runtime --no-opengl-sw --no-network .\release\
IF %ERRORLEVEL% NEQ 0 (
EXIT /B %ERRORLEVEL%
)
::---------------------------------------------------------::
:: Rename the release folder ::
::---------------------------------------------------------::