Skip to content

Commit de444b1

Browse files
authored
fix(bundler): debian failing to load icns icon, closes #3062 (#4009)
* fix(bundler): debian failing to load icns icon, closes #3062 * fix change file
1 parent 6278fc9 commit de444b1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.changes/fix-debian-icns-load.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Ignore errors when loading `icns` files in the `.deb` package generation.

tooling/bundler/src/bundle/linux/debian.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,10 @@ fn generate_icon_files(settings: &Settings, data_dir: &Path) -> crate::Result<BT
320320
path: dest_path,
321321
};
322322
if !icons.contains(&deb_icon) {
323-
let icon = icon_family.get_icon_with_type(icon_type)?;
324-
icon.write_png(common::create_file(&deb_icon.path)?)?;
325-
icons.insert(deb_icon);
323+
if let Ok(icon) = icon_family.get_icon_with_type(icon_type) {
324+
icon.write_png(common::create_file(&deb_icon.path)?)?;
325+
icons.insert(deb_icon);
326+
}
326327
}
327328
}
328329
} else {

0 commit comments

Comments
 (0)