4 cscript /nologo ExpandEnvironmenStrings.vbs Version.in > Version.h
7 for /f "usebackq tokens=*" %%i in (`"%programfiles(x86)%\microsoft visual studio\installer\vswhere.exe" -version [16.0^,17.0^) -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
10 if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
11 call "%InstallDir%\Common7\Tools\vsdevcmd.bat
15 call :BuildBin || goto :eof
16 call :BuildBin x64 || goto :eof
18 call :BuildBin %1 || goto :eof
30 if "%PLATFORM_VS%" == "Win32" (
33 set PLATFORM_DIR=%PLATFORM_VS%
35 MSBuild WinMerge.vs2019.sln /t:Rebuild /p:Configuration="Release" /p:Platform="%PLATFORM_VS%" || goto :eof
38 if exist "%SIGNBAT_PATH%" (
39 call "%SIGNBAT_PATH%" Build\%PLATFORM_DIR%\Release\WinMergeU.exe
42 mkdir Build\%PLATFORM_DIR%\Release\%APPVER% 2> NUL
43 copy Build\%PlATFORM_DIR%\Release\*.pdb "Build\%PLATFORM_DIR%\Release\%APPVER%\"