OSDN Git Service

345d34acb534903725ad5685a00073230e227d2d
[winmerge-jp/winmerge-jp.git] / BuildBin.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 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
11 MSBuild WinMerge.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="Win32" || pause
12 MSBuild WinMerge.sln /t:Rebuild /p:Configuration="Release Unicode" /p:Platform="x64" || pause
13 endlocal
14
15 if exist "%SIGNBAT_PATH%" (
16   call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\WinMergeU.exe
17   call "%SIGNBAT_PATH%" Build\MergeUnicodeRelease\MergeLang.dll
18   call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\WinMergeU.exe
19   call "%SIGNBAT_PATH%" Build\x64\MergeUnicodeRelease\MergeLang.dll
20 )
21
22 mkdir Build\MergeUnicodeRelease\%APPVER% 2> NUL
23 mkdir Build\x64\MergeUnicodeRelease\%APPVER% 2> NUL
24 copy Build\MergeUnicodeRelease\*.pdb "Build\MergeUnicodeRelease\%APPVER%\"
25 copy Build\x64\MergeUnicodeRelease\*.pdb "Build\x64\MergeUnicodeRelease\%APPVER%\"
26
27 for %%i in ("%ProgramFiles(x86)%" "%ProgramFiles%") do (
28   if exist "%%~i\Inno Setup 5\iscc.exe" (
29     "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge.iss" || pause
30     "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMergeX64.iss" || pause
31   )
32 )
33