feat(updater): add support to riscv64 architecture

Tauri now supports it, so the updater should check the riscv64 arch and replace the {{arch}} and {{target}} variables properly.

ref https://github.com/tauri-apps/tauri/pull/12602/
pull/2541/head
Lucas Nogueira 4 months ago
parent 5347de8db9
commit 1adf17840c
No known key found for this signature in database
GPG Key ID: A05EE2227C581CD7

@ -0,0 +1,6 @@
---
"updater": patch
"updater-js": patch
---
Add support to the `riscv64` architecture.

@ -1223,6 +1223,8 @@ pub(crate) fn get_updater_arch() -> Option<&'static str> {
Some("armv7") Some("armv7")
} else if cfg!(target_arch = "aarch64") { } else if cfg!(target_arch = "aarch64") {
Some("aarch64") Some("aarch64")
} else if cfg!(target_arch = "riscv64") {
Some("riscv64")
} else { } else {
None None
} }

Loading…
Cancel
Save