Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop: Error setting the App Icon #2344

Open
Anonyfox opened this issue Apr 19, 2024 · 0 comments
Open

Desktop: Error setting the App Icon #2344

Anonyfox opened this issue Apr 19, 2024 · 0 comments

Comments

@Anonyfox
Copy link

Problem

I want to set the app icon on my desktop app (Mac OS). I didn't find something related to that in the docs or the existing issues so far, but stumbled upon the setting in the Dioxus.tml that can be set:

[bundle]
icon = ["icon.icns"]

I tried it with a .png or the .icns file (created properly from that png) and various ways of setting the path. What happens is either a "file not found" bug or

Failed to bundle project: IoError(
    Os {
        code: 63,
        kind: InvalidFilename,
        message: "File name too long",
    },
)

Steps To Reproduce

Steps to reproduce the behavior:

  • new dioxus app (desktop) from created with dx new
  • put a icon image somewhere in the folder (iE crate root)
  • add the TOML setting as above
  • try dx bundle --release

Expected behavior

A clear and concise description of what you expected to happen.

The app should have the correct icon

Environment:

  • Dioxus version: v0.5 (latest from crates io)
  • Rust version: rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • OS info: MacOS Sonoma 14.4
  • App platform: desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant