feat: add cli support to build assets from executable (#3429)

* feat: add cli support to build assets from executable

See https://github.com/DioxusLabs/dioxus/discussions/3402#discussioncomment-11632372

* fix: store relative paths in executable

* bring back deprecation warning

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Brian MayandJonathan Kelley authored and GitHub committed 2025-04-15 14:51:04 -07:00
1 parent 2c5de0a713
commit 5109a4b745
4 files changed
+48 -1

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ impl BundledAsset {
/// Create a new asset but with a relative path
///
/// This method is deprecated and will be removed in a future release.
#[deprecated(
#[deprecated(
note = "Relative asset!() paths are not supported. Use a path like `/assets/myfile.png` instead of `./assets/myfile.png`"
)]
pub const fn new_relative(