Skip to content

Conversation

@WhyNotHugo
Copy link

@WhyNotHugo WhyNotHugo commented Oct 23, 2025

When Tauri is explicitly configured to use no icons via:

"bundle": {
  "icon": []
}  

It still tries to compile icons in a fallback path of icons/icon.png. This blocks compiling any project unless artwork is in place, even though this might be entirely beyond scope for a project.

This issue stems from the fact that Vec<String> is used to deserialise icons, so there is no way to distinguish "no explicit value" from "explicitly instructed to use no value".

Use an Option<Vec<String>> to deserialise configured icons, where no value (None) means "nothing explicitly specified; use the default), and Some(EmptyVec) means "explicitly requested no icons".

This allows compiling small proof of concept projects without having to worry about artwork.

Fixes: #14355

@WhyNotHugo WhyNotHugo requested a review from a team as a code owner October 23, 2025 16:01
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Oct 23, 2025
When Tauri is explicitly configured to use no icons via:

  "bundle": {
    "icon": []
  }

It still tries to compile icons in a fallback path of `icons/icon.png`.
This blocks compiling any project unless artwork is in place, even
though this might be entirely beyond scope for a project.

This issue stems from the fact that `Vec<String>` is used to deserialise
icons, so there is no way to distinguish "no explicit value" from
"explicitly instructed to use no value".

Use an `Option<Vec<String>>` to deserialise configured icons, where no
value (None) means "nothing explicitly specified; use the default), and
Some(EmptyVec) means "explicitly requested no icons".

This allows compiling small proof of concept projects without having to
worry about artwork.

Fixes: tauri-apps#14355
@WhyNotHugo
Copy link
Author

v2: fixed issue in cargo check.

Building a downstream project with no icons now works fine 👍

@github-actions
Copy link
Contributor

Package Changes Through 1b6b2fd

No changes.

Add a change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Copy link
Contributor

@Legend-Master Legend-Master left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have not tested the build without icons yet, just some early feedback on the design

I think we don't really need to use Option<Vec<_>> here, we can simply skip the icon if the user didn't provide one, either by using an empty list or didn't add that field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

2 participants