File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed
Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 22
331 . Download and Install Inno Setup ([ Quick link] ( http://www.jrsoftware.org/download.php/is.exe ) )
442 . Download and Install Python 3.11 ([ Quick link] ( https://www.python.org/downloads/release/python-3117/ ) )
5- 3 . Change the Kathara version number in both ` src/Kathara/version.py ` and ` installer.iss ` files.
6- 4 . Create binary package running ` WindowsBuild.bat `
7- 5 . Compile Inno Script Setup file
5+ 3 . Add Inno Setup and Python 3.11 to the PATH environment variable
6+ 4 . Change the Kathara version number in both ` src/Kathara/version.py ` and ` installer.iss ` files.
7+ 5 . Create binary package running ` WindowsBuild.bat `
886 . Share the ` Kathara-setup.exe ` in output folder :)
Original file line number Diff line number Diff line change @@ -35,4 +35,15 @@ rmdir /S /Q kathara.build
3535CALL %VENV_DIR% \Scripts\deactivate
3636rmdir /S /Q %VENV_DIR%
3737
38+ cd ..\scripts\Windows
39+ set " arch = %PROCESSOR_ARCHITECTURE% "
40+ if /I " %arch% " == " AMD64" (
41+ set " arch_suffix = x64"
42+ ) else if /I " %arch% " == " ARM64" (
43+ set " arch_suffix = arm64"
44+ ) else (
45+ set " arch_suffix = x86"
46+ )
47+
48+ iscc /DMyArchitecture=%arch_suffix% .\installer.iss
3849cmd.exe
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ DisableProgramGroupPage=yes
2727LicenseFile = ..\..\LICENSE
2828; Uncomment the following line to run in non administrative install mode (install for current user only.)
2929;PrivilegesRequired=lowest
30- OutputBaseFilename = Kathara-windows-installer-x64 -{#MyAppVersion}
30+ OutputBaseFilename = Kathara-windows-installer-{#MyArchitecture} -{#MyAppVersion}
3131SetupIconFile = Assets\app_icon.ico
3232Compression = lzma
3333SolidCompression = yes
3434WizardStyle = modern
3535ChangesEnvironment = True
36- ArchitecturesInstallIn64BitMode = x64
36+ ArchitecturesInstallIn64BitMode = {#MyArchitecture}
3737UninstallDisplayIcon = {app} \Kathara.exe
3838
3939[Messages]
6464 if CurUninstallStep = usPostUninstall
6565 then EnvRemovePath(ExpandConstant(' {app}' ));
6666end ;
67-
67+
You can’t perform that action at this time.
0 commit comments