From 213ce0298547e2a6506a07bad4674e5e8be82bd5 Mon Sep 17 00:00:00 2001 From: longpanda Date: Wed, 24 Jun 2026 18:41:03 +0800 Subject: [PATCH] add build.bat for VentoyPlugson --- Plugson/vs/VentoyPlugson/build.bat | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Plugson/vs/VentoyPlugson/build.bat diff --git a/Plugson/vs/VentoyPlugson/build.bat b/Plugson/vs/VentoyPlugson/build.bat new file mode 100644 index 00000000..6e6f6cec --- /dev/null +++ b/Plugson/vs/VentoyPlugson/build.bat @@ -0,0 +1,43 @@ +@echo off +echo ============================================== +echo VS Build Script +echo ============================================== + +set "VS_DEV_CMD=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" +set "SLN_FILE=VentoyPlugson.sln" + + +echo Init VS environment ... +call "%VS_DEV_CMD%" -no_logo +if %errorlevel% neq 0 ( + echo Error: VS environment init failed, please check. + pause + exit /b 1 +) + +:: ============== Build Release Win32 (x86) ============== +echo. +echo Build: Release Win32 +MSBuild "%SLN_FILE%" /t:Build /p:Configuration=Release;Platform=Win32 /m +if %errorlevel% neq 0 ( + echo Build Release Win32 Failed! + pause + exit /b 1 +) + + +:: ============== Build Release x64 ============== +echo. +echo Build: Release x64 +MSBuild "%SLN_FILE%" /t:Build /p:Configuration=Release;Platform=x64 /m +if %errorlevel% neq 0 ( + echo Build Release x64 Failed! + pause + exit /b 1 +) + +echo. +echo ============================================== +echo Build Success +echo ============================================== +pause