DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.37k stars 747 forks source link

dioxus-cli + desktop asset dir resolution not working #2078

Closed jkelleyrtp closed 3 months ago

jkelleyrtp commented 3 months ago

Problem

An asset linked via the static directory (without magnanis) does not show up in dioxus-desktop.

The CLI is bundling the asset dir but not handing it off to the desktop app when it runs.

We should point desktop to resolve to the outdir.

Screenshots

The stylesheet appears on web:

Screenshot 2024-03-13 at 3 21 03 PM

But not on desktop:

Screenshot 2024-03-13 at 3 20 32 PM

But it should be resolved to the asset dir root:

Screenshot 2024-03-13 at 3 21 35 PM

Environment:

Questionnaire