OSDN Git Service

Merge pull request #32 from GreyMerlin/master
[winmerge-jp/winmerge-jp.git] / BuildBin.vs2017.cmd
1 cd /d "%~dp0"
2
3 del /s Build\*.exe
4 del /s BuildTmp\*.res
5
6 call SetVersion.cmd
7 cscript /nologo ExpandEnvironmenStrings.vbs Version.in > Version.h
8
9 setlocal
10 set VisualStudioVersion=15.0
11 call "%VS141COMNTOOLS%vsvars32.bat"
12 MSBuild WinMerge.vs2017.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="Win32" || pause
13 MSBuild WinMerge.vs2017.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="x64" || pause
14 endlocal
15
16 if exist "%SIGNBAT_PATH%" (
17   call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\WinMergeU.exe
18   call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\MergeLang.dll
19   call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\WinMergeU.exe
20   call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\MergeLang.dll
21 )
22
23 mkdir Build\MergeUnicodeRelease\%APPVER% 2> NUL
24 mkdir Build\x64\MergeUnicodeRelease\%APPVER% 2> NUL
25 copy Build\MergeUnicodeRelease\*.pdb "Build\MergeUnicodeRelease\%APPVER%\"
26 copy Build\x64\MergeUnicodeRelease\*.pdb "Build\x64\MergeUnicodeRelease\%APPVER%\"
27
28 for %%i in ("%ProgramFiles(x86)%" "%ProgramFiles%") do (
29   if exist "%%~i\Inno Setup 5\iscc.exe" (
30     "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge.iss" || pause
31     "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMergeX64.iss" || pause
32   )
33 )
34