From 1adf17840c257e619e3c169c915ca0116ddfde24 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 16 Mar 2025 16:36:20 -0300 Subject: [PATCH] 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/ --- .changes/updater-riscv64.md | 6 ++++++ plugins/updater/src/updater.rs | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .changes/updater-riscv64.md diff --git a/.changes/updater-riscv64.md b/.changes/updater-riscv64.md new file mode 100644 index 00000000..76d7d00d --- /dev/null +++ b/.changes/updater-riscv64.md @@ -0,0 +1,6 @@ +--- +"updater": patch +"updater-js": patch +--- + +Add support to the `riscv64` architecture. diff --git a/plugins/updater/src/updater.rs b/plugins/updater/src/updater.rs index 65c91749..1ae2cfe9 100644 --- a/plugins/updater/src/updater.rs +++ b/plugins/updater/src/updater.rs @@ -1223,6 +1223,8 @@ pub(crate) fn get_updater_arch() -> Option<&'static str> { Some("armv7") } else if cfg!(target_arch = "aarch64") { Some("aarch64") + } else if cfg!(target_arch = "riscv64") { + Some("riscv64") } else { None }