-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildBin.vs2017.cmd
27 lines (23 loc) · 1.2 KB
/
BuildBin.vs2017.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
cd /d "%~dp0"
call SetVersion.cmd
cscript /nologo ExpandEnvironmenStrings.vbs Version.in > Version.h
setlocal
for /f "usebackq tokens=*" %%i in (`"%programfiles(x86)%\microsoft visual studio\installer\vswhere.exe" -latest -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 %*
)
MSBuild WinMerge.vs2017.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="Win32" || pause
MSBuild WinMerge.vs2017.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="x64" || pause
endlocal
if exist "%SIGNBAT_PATH%" (
call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\WinMergeU.exe
call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\MergeLang.dll
call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\WinMergeU.exe
call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\MergeLang.dll
)
mkdir Build\MergeUnicodeRelease\%APPVER% 2> NUL
mkdir Build\x64\MergeUnicodeRelease\%APPVER% 2> NUL
copy Build\MergeUnicodeRelease\*.pdb "Build\MergeUnicodeRelease\%APPVER%\"
copy Build\x64\MergeUnicodeRelease\*.pdb "Build\x64\MergeUnicodeRelease\%APPVER%\"