diff --git a/build-installer.bat b/build-installer.bat index 593e20a379..a0207bbcb4 100644 --- a/build-installer.bat +++ b/build-installer.bat @@ -39,7 +39,8 @@ copy help\macro\macro.chm %INSTALLER_WORK%\ copy %platform%\%configuration%\*.exe %INSTALLER_WORK%\ copy %platform%\%configuration%\*.dll %INSTALLER_WORK%\ -"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" installer\sakura.iss || (echo error && exit /b 1) +set SAKURA_ISS=installer\sakura-%platform%.iss +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" %SAKURA_ISS% || (echo error && exit /b 1) if exist "%INSTALLER_RESOURCES%" rmdir /s /q "%INSTALLER_RESOURCES%" if exist "%INSTALLER_WORK%" rmdir /s /q "%INSTALLER_WORK%" diff --git a/installer/sakura-Win32.iss b/installer/sakura-Win32.iss new file mode 100644 index 0000000000..a680cdf2f4 --- /dev/null +++ b/installer/sakura-Win32.iss @@ -0,0 +1,2 @@ +#define MyArchitecture "x86" +#include "sakura-common.iss" diff --git a/installer/sakura.iss b/installer/sakura-common.iss similarity index 98% rename from installer/sakura.iss rename to installer/sakura-common.iss index 4a33220c04..4b473bc0b7 100644 --- a/installer/sakura.iss +++ b/installer/sakura-common.iss @@ -7,6 +7,10 @@ #define MyAppVerH StringChange(MyAppVer, ".", "-") [Setup] +#if MyArchitecture != "x86" +ArchitecturesInstallIn64BitMode={#MyArchitecture} +ArchitecturesAllowed={#MyArchitecture} +#endif AppName=サクラエディタ AppId=sakura editor AppVersion={#MyAppVer} @@ -28,7 +32,7 @@ DisableStartupPrompt=no PrivilegesRequired=None ; エディタのバージョンに応じて書き換える場所 -OutputBaseFilename=sakura_install{#MyAppVerH} +OutputBaseFilename=sakura_install{#MyAppVerH}-{#MyArchitecture} VersionInfoVersion={#MyAppVer} VersionInfoProductVersion={#MyAppVer} diff --git a/installer/sakura-x64.iss b/installer/sakura-x64.iss new file mode 100644 index 0000000000..3f481d9cbc --- /dev/null +++ b/installer/sakura-x64.iss @@ -0,0 +1,2 @@ +#define MyArchitecture "x64" +#include "sakura-common.iss"