OSDN Git Service

Fix PHP syntax highlighting. (#751)
[winmerge-jp/winmerge-jp.git] / BuildInstaller.cmd
index 6d067d8..ed4da19 100644 (file)
@@ -2,9 +2,12 @@ if "%1" == "" (
   call :BuildInstaller
   call :BuildInstaller x64
   call :BuildInstaller x64NonAdmin
+  call :BuildInstaller ARM64
 ) else if "%1" == "x64" (
   call :BuildInstaller x64
   call :BuildInstaller x64NonAdmin
+) else if "%1" == "ARM64" (
+  call :BuildInstaller ARM64
 ) else (
   call :BuildInstaller %1 
 )
@@ -13,19 +16,19 @@ goto :eof
 :BuildInstaller
 set PLATFORM=%1
 
-rem if "%PLATFORM%" == "x64" (
-rem   for %%i in ("%LOCALAPPDATA%\Programs" "%ProgramFiles(x86)%" "%ProgramFiles%") do (
-rem     if exist "%%~i\Inno Setup 6\iscc.exe" (
-rem       "%%~i\Inno Setup 6\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.is6.iss" || pause
-rem       goto :eof
-rem     ) else (
-rem       if exist "%%~i\Inno Setup 5\iscc.exe" (
-rem         "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.iss" || pause
-rem         goto :eof
-rem       )
-rem     )
-rem   )
-rem ) else (
+if "%PLATFORM%" == "ARM64" (
+  for %%i in ("%LOCALAPPDATA%\Programs" "%ProgramFiles(x86)%" "%ProgramFiles%") do (
+    if exist "%%~i\Inno Setup 6\iscc.exe" (
+      "%%~i\Inno Setup 6\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.is6.iss" || pause
+      goto :eof
+    ) else (
+      if exist "%%~i\Inno Setup 5\iscc.exe" (
+        "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.iss" || pause
+        goto :eof
+      )
+    )
+  )
+) else (
   echo.
   echo ============================================================
   echo Build WinMerge%PLATFORM%.iss with Inno Setup 5
@@ -36,6 +39,6 @@ rem ) else (
       goto :eof
     )
   )
-rem )
+)
 
 goto :eof