Skip to content

Commit

Permalink
fix(bundler): debian failing to load icns icon, closes #3062 (#4009)
Browse files Browse the repository at this point in the history
* fix(bundler): debian failing to load icns icon, closes #3062

* fix change file
  • Loading branch information
lucasfernog committed Apr 30, 2022
1 parent 6278fc9 commit de444b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-debian-icns-load.md
@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---

Ignore errors when loading `icns` files in the `.deb` package generation.
7 changes: 4 additions & 3 deletions tooling/bundler/src/bundle/linux/debian.rs
Expand Up @@ -320,9 +320,10 @@ fn generate_icon_files(settings: &Settings, data_dir: &Path) -> crate::Result<BT
path: dest_path,
};
if !icons.contains(&deb_icon) {
let icon = icon_family.get_icon_with_type(icon_type)?;
icon.write_png(common::create_file(&deb_icon.path)?)?;
icons.insert(deb_icon);
if let Ok(icon) = icon_family.get_icon_with_type(icon_type) {
icon.write_png(common::create_file(&deb_icon.path)?)?;
icons.insert(deb_icon);
}
}
}
} else {
Expand Down

0 comments on commit de444b1

Please sign in to comment.