瀏覽代碼

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

Lucas Fernandes Nogueira 4 年之前
父節點
當前提交
894643cdcd
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 5 0
      .changes/bundler-arm.md
  2. 2 0
      tooling/bundler/src/bundle/linux/debian.rs

+ 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() {
     "x86" => "i386",
     "x86_64" => "amd64",
+    // ARM64 is detected differently, armel isn't supported, so armhf is the only reasonable choice here.
+    "arm" => "armhf",
     other => other,
   };
   let package_base_name = format!(