From a186ab16883c5f327a144c12746f69b20ad8ad58 Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Thu, 22 Feb 2024 22:39:25 +0800 Subject: [PATCH] update build-Plugins.bat --- scripts/build-Plugins.bat | 68 ++++++++++++++++++++++++++++----------- 1 file changed, 49 insertions(+), 19 deletions(-) diff --git a/scripts/build-Plugins.bat b/scripts/build-Plugins.bat index edd03e12..866b63e6 100644 --- a/scripts/build-Plugins.bat +++ b/scripts/build-Plugins.bat @@ -19,28 +19,58 @@ if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" ( "%InstallDir%\Common7\Tools\vsdevcmd.bat" - MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release_AVX2" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release_AVX2" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\VGUI2Extension" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\CaptionMod" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\CommunicationDemo" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\DontFlushSoundCache" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\PrecacheManager" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\SCModelDownloader" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\SteamScreenshots" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\StudioEvents" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\ThreadGuard" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\ResourceReplacer" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - MSBuild.exe MetaHook.sln "/target:Plugins\SCCameraFix" /p:Configuration="Release" /p:Platform="Win32" || goto builderror - goto endbuild + MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror -:builderror - echo Build failed - exit /b -1 + MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release_AVX2" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release_AVX2" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\VGUI2Extension" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\CaptionMod" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\CommunicationDemo" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\DontFlushSoundCache" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\PrecacheManager" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\SCModelDownloader" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\SteamScreenshots" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\StudioEvents" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\ThreadGuard" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\ResourceReplacer" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + MSBuild.exe MetaHook.sln "/target:Plugins\SCCameraFix" /p:Configuration="Release" /p:Platform="Win32" + IF %ERRORLEVEL% NEQ 0 GOTO builderror + + goto endbuild ) +:builderror +echo Build failed +exit /b -1 + :endbuild echo Build OK \ No newline at end of file