-
Notifications
You must be signed in to change notification settings - Fork 16
/
BuildBin.vs2022.cmd
37 lines (29 loc) · 1 KB
/
BuildBin.vs2022.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cd /d "%~dp0"
del /s BuildTmp\*.res
del gen-versioninfo.h
setlocal
for /f "usebackq tokens=*" %%i in (`"%programfiles(x86)%\microsoft visual studio\installer\vswhere.exe" -version [17.0^,18.0^) -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
set InstallDir=%%i
)
if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
call "%InstallDir%\Common7\Tools\vsdevcmd.bat
)
if "%1" == "" (
call :BuildBin x86 || goto :eof
call :BuildBin x64 || goto :eof
call :BuildBin ARM || goto :eof
call :BuildBin ARM64 || goto :eof
) else (
call :BuildBin %1 || goto :eof
)
endlocal
goto :eof
:BuildBin
del /s Build\%1\Release\WinIMerge\*.exe
MSBuild WinIMerge.vs2022.sln /t:rebuild /p:Configuration=Release /p:Platform="%1" || pause
if exist "%SIGNBAT_PATH%" (
call "%SIGNBAT_PATH%" Build\%1\Release\WinIMerge\WinIMerge.exe
call "%SIGNBAT_PATH%" Build\%1\Release\WinIMerge\WinIMergeLib.dll
call "%SIGNBAT_PATH%" Build\%1\Release\WinIMerge\cidiff.exe
)
goto :eof