Эх сурвалжийг харах

feat(bundler): use `armhf` as Debian package architecture on arm CPUs (#1663)

Lucas Fernandes Nogueira 4 жил өмнө
parent
commit
894643cdcd

+ 5 - 0
.changes/bundler-arm.md

@@ -0,0 +1,5 @@
+---
+"tauri-bundler": patch
+---
+
+Use `armhf` as Debian package architecture on `arm` CPUs.

+ 2 - 0
tooling/bundler/src/bundle/linux/debian.rs

@@ -53,6 +53,8 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
   let arch = match settings.binary_arch() {
   let arch = match settings.binary_arch() {
     "x86" => "i386",
     "x86" => "i386",
     "x86_64" => "amd64",
     "x86_64" => "amd64",
+    // ARM64 is detected differently, armel isn't supported, so armhf is the only reasonable choice here.
+    "arm" => "armhf",
     other => other,
     other => other,
   };
   };
   let package_base_name = format!(
   let package_base_name = format!(