DioxusLabs / DioxusLabs/dioxus

dioxus.toml `icon` field no longer works

Open
#5,233 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

It looks like the `bundle.icon` list no longer seems to work when bundling as of `0.7.2` of the dioxus-cli.

**Steps To Reproduce**

Steps to reproduce the behavior:

- Create some icons, put them in an icon folder
- List the icons in the `icon` list in `dioxus.toml`, eg
```toml
[bundle]
# ...

icon = [
"./icons/32x32.png",
"./icons/128x128.png",
"./icons/128x128@2x.png",
"./icons/icon.icns",
"./icons/icon.ico"
]
```
- Run `dx bundle` with 0.7.1 - works
- Run `dx bundle` with 0.7.2 - get the error `ERROR dx bundle: Failed to canonicalize path to icon "./icons/32x32.png"`)
- Run `dx bundle` with 0.7.3 - get the error `ERROR dx bundle: Failed to canonicalize path to icon "./icons/32x32.png"`)

**Expected behavior**

Includes icons in the bundle

**Screenshots**

GHA Output here: https://github.com/Fios-Quest/job-tracker/actions/runs/21095132306/job/60671565330?pr=109

**Environment:**

- Dioxus version: 0.7.2 and 0.7.3
- Rust version: rustc 1.92.0 (ded5c06cf 2025-12-08)
- OS info: macOS (but also GitHub Actions runners which were previously building macOS and Windows)
- App platform: Desktop

**Questionnaire**

I don't have time to fix this right now, but maybe later.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.