Skip to content

Commit a5e4694

Browse files
authored
feat: build cli for windows aarch64 (#386)
* feat: build cli for windows aarch64 * remove comments * change file * update powershell script
1 parent e51b085 commit a5e4694

4 files changed

Lines changed: 22 additions & 1 deletion

File tree

.changes/aarch64-pc-windows.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-tauri-app": "minor"
3+
"create-tauri-app-js": "minor"
4+
---
5+
6+
Release `aarch64` binaries and node modules.
7+

.github/workflows/publish-binaries.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- host: windows-latest
3535
target: x86_64-pc-windows-msvc
3636
ext: .exe
37+
- host: windows-latest
38+
target: aarch64-pc-windows-msvc
39+
ext: .exe
3740
- host: windows-latest
3841
target: i686-pc-windows-msvc
3942
ext: .exe

.github/workflows/publish-napi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
architecture: x64
4444
build: |
4545
pnpm build --target i686-pc-windows-msvc
46+
- host: windows-latest
47+
target: aarch64-pc-windows-msvc
48+
architecture: x64
49+
build: |
50+
pnpm build --target aarch64-pc-windows-msvc
4651
- host: ubuntu-latest
4752
target: x86_64-unknown-linux-gnu
4853
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian

create-tauri-app.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# SPDX-License-Identifier: MIT
44

5-
$bitness = if ([Environment]::Is64BitOperatingSystem) { "x86_64" } else { "i686" }
5+
$bitness = if ([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture -eq "X64") {
6+
"x86_64"
7+
} elseif ([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture -eq "Arm64") {
8+
"aarch64"
9+
} else {
10+
"i686"
11+
}
612
$__TAG_NAME__ = "create-tauri-app-v3.2.1"
713
# $url="https://github.com/tauri-apps/create-tauri-app/releases/download/$__TAG_NAME__/create-tauri-app-$bitness-pc-windows-msvc.exe"
814
$url="https://create.tauri.app/download/bin?tag=$__TAG_NAME__&arch=$bitness-pc-windows-msvc&ext=.exe"

0 commit comments

Comments
 (0)