Skip to content

Commit 11dea34

Browse files
lucasfernogpowell-newin
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 99481fa commit 11dea34

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
@@ -1225,6 +1225,8 @@ pub(crate) fn get_updater_arch() -> Option<&'static str> {
12251225
Some("armv7")
12261226
} else if cfg!(target_arch = "aarch64") {
12271227
Some("aarch64")
1228+
} else if cfg!(target_arch = "riscv64") {
1229+
Some("riscv64")
12281230
} else {
12291231
None
12301232
}

0 commit comments

Comments
 (0)