OSDN Git Service

UnitTests: Add DiffItemListTest
[winmerge-jp/winmerge-jp.git] / BuildInstaller.cmd
1 if "%1" == "" (
2   call :BuildInstaller
3   call :BuildInstaller x64
4   call :BuildInstaller x64NonAdmin
5   call :BuildInstaller ARM64
6 ) else if "%1" == "x64" (
7   call :BuildInstaller x64
8   call :BuildInstaller x64NonAdmin
9 ) else if "%1" == "ARM64" (
10   call :BuildInstaller ARM64
11 ) else (
12   call :BuildInstaller %1 
13 )
14 goto :eof
15
16 :BuildInstaller
17 set PLATFORM=%1
18
19 if "%PLATFORM%" == "ARM64" (
20   for %%i in ("%LOCALAPPDATA%\Programs" "%ProgramFiles(x86)%" "%ProgramFiles%") do (
21     if exist "%%~i\Inno Setup 6\iscc.exe" (
22       "%%~i\Inno Setup 6\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.is6.iss" || pause
23       goto :eof
24     ) else (
25       if exist "%%~i\Inno Setup 5\iscc.exe" (
26         "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.iss" || pause
27         goto :eof
28       )
29     )
30   )
31 ) else (
32   echo.
33   echo ============================================================
34   echo Build WinMerge%PLATFORM%.iss with Inno Setup 5
35   echo ============================================================
36   for %%i in ("%ProgramFiles(x86)%" "%ProgramFiles%") do (
37     if exist "%%~i\Inno Setup 5\iscc.exe" (
38       "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.iss" || pause
39       goto :eof
40     )
41   )
42 )
43
44 goto :eof