Skip to content

Commit 0a1036a

Browse files
lucasfernoggezihuzi
authored andcommitted
feat(updater): add support to riscv64 architecture (tauri-apps#2541)
Tauri now supports it, so the updater should check the riscv64 arch and replace the {{arch}} and {{target}} variables properly. ref tauri-apps/tauri#12602
1 parent d985e7c commit 0a1036a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changes/updater-riscv64.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"updater": patch
3+
"updater-js": patch
4+
---
5+
6+
Add support to the `riscv64` architecture.

plugins/updater/src/updater.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,8 @@ pub(crate) fn get_updater_arch() -> Option<&'static str> {
12231223
Some("armv7")
12241224
} else if cfg!(target_arch = "aarch64") {
12251225
Some("aarch64")
1226+
} else if cfg!(target_arch = "riscv64") {
1227+
Some("riscv64")
12261228
} else {
12271229
None
12281230
}

0 commit comments

Comments
 (0)