Skip to content

Commit 830366a

Browse files
committed
added windows ARM64
1 parent 853eaa6 commit 830366a

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: windows-latest
1717
strategy:
1818
matrix:
19-
architecture: [x64]
19+
architecture: [x64, arm64]
2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v4
@@ -30,7 +30,7 @@ jobs:
3030
run: flutter pub get
3131

3232
- name: Build Windows (${{ matrix.architecture }})
33-
run: flutter build windows --release
33+
run: flutter build windows --release --target-platform windows-${{ matrix.architecture }}
3434

3535
- name: Install Inno Setup
3636
run: |
@@ -40,13 +40,13 @@ jobs:
4040
- name: Create Windows installer
4141
run: |
4242
cd windows\installer
43-
ISCC.exe CCloud.iss
43+
ISCC.exe /DMyAppArchitecture=${{ matrix.architecture }} CCloud.iss
4444
shell: cmd
4545

4646
- name: Package Windows build
4747
run: |
4848
mkdir -p release
49-
copy windows\installer\ccloud_gui-setup.exe release\
49+
copy windows\installer\ccloud_gui-setup-${{ matrix.architecture }}.exe release\
5050
shell: cmd
5151

5252
- name: Create Windows Portable ZIP
@@ -62,7 +62,7 @@ jobs:
6262
with:
6363
name: windows-build-${{ matrix.architecture }}
6464
path: |
65-
release/ccloud_gui-setup.exe
65+
release/ccloud_gui-setup-${{ matrix.architecture }}.exe
6666
release/CCloud-windows-${{ matrix.architecture }}-portable.zip
6767
6868
build-macos:
@@ -299,6 +299,11 @@ jobs:
299299
with:
300300
name: windows-build-x64
301301

302+
- name: Download Windows artifacts (ARM64)
303+
uses: actions/download-artifact@v4
304+
with:
305+
name: windows-build-arm64
306+
302307
- name: Download macOS artifacts
303308
uses: actions/download-artifact@v4
304309
with:
@@ -331,8 +336,10 @@ jobs:
331336
draft: false
332337
prerelease: false
333338
files: |
334-
ccloud_gui-setup.exe
339+
ccloud_gui-setup-x64.exe
340+
ccloud_gui-setup-arm64.exe
335341
CCloud-windows-x64-portable.zip
342+
CCloud-windows-arm64-portable.zip
336343
CCloud-macos-universal.dmg
337344
CCloud-macos-universal.zip
338345
CCloud-linux.tar.gz
@@ -352,8 +359,10 @@ jobs:
352359
353360
| Platform | Architecture | Download |
354361
|----------|-------------|----------|
355-
| Windows | x64 (Installer) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/ccloud_gui-setup.exe"><img src="https://img.shields.io/badge/Windows-Installer-0078D6?style=for-the-badge&logo=windows&logoColor=white" alt="Windows Installer"></a> |
362+
| Windows | x64 (Installer) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/ccloud_gui-setup-x64.exe"><img src="https://img.shields.io/badge/Windows-x64--Installer-0078D6?style=for-the-badge&logo=windows&logoColor=white" alt="Windows x64 Installer"></a> |
356363
| Windows | x64 (Portable ZIP) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/CCloud-windows-x64-portable.zip"><img src="https://img.shields.io/badge/Windows-x64--Portable--ZIP-0078D6?style=for-the-badge&logo=windows&logoColor=white" alt="Windows x64 Portable ZIP"></a> |
364+
| Windows | ARM64 (Installer) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/ccloud_gui-setup-arm64.exe"><img src="https://img.shields.io/badge/Windows-ARM64--Installer-0078D6?style=for-the-badge&logo=windows&logoColor=white" alt="Windows ARM64 Installer"></a> |
365+
| Windows | ARM64 (Portable ZIP) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/CCloud-windows-arm64-portable.zip"><img src="https://img.shields.io/badge/Windows-ARM64--Portable--ZIP-0078D6?style=for-the-badge&logo=windows&logoColor=white" alt="Windows ARM64 Portable ZIP"></a> |
357366
| macOS | Universal (.dmg) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/CCloud-macos-universal.dmg"><img src="https://img.shields.io/badge/macOS-Universal-000000?style=for-the-badge&logo=apple&logoColor=white" alt="macOS Universal DMG"></a> |
358367
| macOS | Universal (.zip) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/CCloud-macos-universal.zip"><img src="https://img.shields.io/badge/macOS-Universal-000000?style=for-the-badge&logo=apple&logoColor=white" alt="macOS Universal ZIP"></a> |
359368
| Linux | x64 (tar.gz) | <a href="https://github.com/code3-dev/CCloud-GUI/releases/download/${{ env.TAG_NAME }}/CCloud-linux.tar.gz"><img src="https://img.shields.io/badge/Linux-tar.gz-FCC624?style=for-the-badge&logo=linux&logoColor=black" alt="Linux tar.gz"></a> |

windows/installer/CCloud.iss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#define MyAppPublisher "Hossein Pira"
44
#define MyAppURL "https://github.com/code3-dev/CCloud-GUI"
55
#define MyAppExeName "ccloud_gui.exe"
6+
#define MyAppArchitecture "x64"
67

78
[Setup]
89
AppId={{8B4D4F4D-4F4D-4D4F-4D4F-4D4D4D4D4D4E}
@@ -15,7 +16,7 @@ AppUpdatesURL={#MyAppURL}
1516
DefaultDirName={autopf}\{#MyAppName}
1617
DisableProgramGroupPage=yes
1718
OutputDir=.
18-
OutputBaseFilename=ccloud_gui-setup
19+
OutputBaseFilename=ccloud_gui-setup-{#MyAppArchitecture}
1920
Compression=lzma
2021
SolidCompression=yes
2122
WizardStyle=modern
@@ -29,8 +30,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
2930
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons"; Flags: unchecked
3031

3132
[Files]
32-
Source: "..\..\build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
33-
Source: "..\..\build\windows\x64\runner\Release\*"; Excludes: "{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
33+
Source: "..\..\build\windows\{#MyAppArchitecture}\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
34+
Source: "..\..\build\windows\{#MyAppArchitecture}\runner\Release\*"; Excludes: "{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
3435

3536
[Icons]
3637
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"

0 commit comments

Comments
 (0)