Fix: Asset Cache On Windows & Asset Status (#3525)
* fix: asset caching on windows * fix: asset status
This commit is contained in:
1 parent
5ea0867a34
commit
a3812d66da
8 files changed
+23
-17
No files matched your search
@@ -2,7 +2,6 @@ use crate::{AppBundle, Platform, Result};
|
||||
use anyhow::Context;
|
||||
use dioxus_cli_opt::process_file_to;
|
||||
use std::{
|
||||
fs,
|
||||
net::SocketAddr,
|
||||
path::{Path, PathBuf},
|
||||
process::Stdio,
|
||||
@@ -190,7 +189,7 @@ impl AppHandle {
|
||||
}
|
||||
|
||||
// Canonicalize the path as Windows may use long-form paths "\\\\?\\C:\\".
|
||||
let changed_file = fs::canonicalize(changed_file)
|
||||
let changed_file = dunce::canonicalize(changed_file)
|
||||
.inspect_err(|e| tracing::debug!("Failed to canonicalize hotreloaded asset: {e}"))
|
||||
.ok()?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user