Skip to content

Commit

Permalink
Merge pull request sakura-editor#180 from m-tmatma/feature/x64-installer
Browse files Browse the repository at this point in the history
Installer のx64 対応
  • Loading branch information
kobake authored Jun 27, 2018
2 parents e7346a1 + e8e7e90 commit c76ac75
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build-installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
2 changes: 2 additions & 0 deletions installer/sakura-Win32.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define MyArchitecture "x86"
#include "sakura-common.iss"
6 changes: 5 additions & 1 deletion installer/sakura.iss → installer/sakura-common.iss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#define MyAppVerH StringChange(MyAppVer, ".", "-")

[Setup]
#if MyArchitecture != "x86"
ArchitecturesInstallIn64BitMode={#MyArchitecture}
ArchitecturesAllowed={#MyArchitecture}
#endif
AppName=サクラエディタ
AppId=sakura editor
AppVersion={#MyAppVer}
Expand All @@ -28,7 +32,7 @@ DisableStartupPrompt=no
PrivilegesRequired=None

; エディタのバージョンに応じて書き換える場所
OutputBaseFilename=sakura_install{#MyAppVerH}
OutputBaseFilename=sakura_install{#MyAppVerH}-{#MyArchitecture}
VersionInfoVersion={#MyAppVer}
VersionInfoProductVersion={#MyAppVer}

Expand Down
2 changes: 2 additions & 0 deletions installer/sakura-x64.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define MyArchitecture "x64"
#include "sakura-common.iss"

0 comments on commit c76ac75

Please sign in to comment.