Skip to content

Commit 88f301f

Browse files
committed
Add ARM64 support to Windows build
1 parent 6dcb780 commit 88f301f

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

scripts/Windows/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
1. Download and Install Inno Setup ([Quick link](http://www.jrsoftware.org/download.php/is.exe))
44
2. 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`
88
6. Share the `Kathara-setup.exe` in output folder :)

scripts/Windows/WindowsBuild.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,15 @@ rmdir /S /Q kathara.build
3535
CALL %VENV_DIR%\Scripts\deactivate
3636
rmdir /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
3849
cmd.exe

scripts/Windows/installer.iss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ DisableProgramGroupPage=yes
2727
LicenseFile=..\..\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}
3131
SetupIconFile=Assets\app_icon.ico
3232
Compression=lzma
3333
SolidCompression=yes
3434
WizardStyle=modern
3535
ChangesEnvironment=True
36-
ArchitecturesInstallIn64BitMode=x64
36+
ArchitecturesInstallIn64BitMode={#MyArchitecture}
3737
UninstallDisplayIcon={app}\Kathara.exe
3838

3939
[Messages]
@@ -64,4 +64,4 @@ begin
6464
if CurUninstallStep = usPostUninstall
6565
then EnvRemovePath(ExpandConstant('{app}'));
6666
end;
67-
67+

0 commit comments

Comments
 (0)