- asset hotreloading for desktop,
- asset dir for dxserve on desktop,
- extend features with platform
This commit is contained in:
Jonathan Kelley committed 2024-03-13 17:15:49 -07:00
1 parent c532d3ec1a
commit bb8b4dc2fb
12 files changed
+101 -33

No files matched your search

+4 -1
View File
@@ -221,7 +221,10 @@ fn get_asset_root() -> Option<PathBuf> {
// If running under cargo, there's no bundle!
// There might be a smarter/more resilient way of doing this
if std::env::var_os("CARGO").is_some() {
return None;
return dioxus_cli_config::CURRENT_CONFIG
.as_ref()
.map(|c| c.out_dir())
.ok();
}
#[cfg(target_os = "macos")]