make dx clean clean the new .dioxus directory
This commit is contained in:
1 parent
1683ec8a72
commit
49be972507
2 files changed
+11
-3
No files matched your search
@@ -28,6 +28,12 @@ impl Clean {
|
|||||||
remove_dir_all(crate_config.crate_dir.join(&out_dir))?;
|
remove_dir_all(crate_config.crate_dir.join(&out_dir))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let fullstack_out_dir = crate_config.crate_dir.join(".dioxus");
|
||||||
|
|
||||||
|
if fullstack_out_dir.is_dir() {
|
||||||
|
remove_dir_all(fullstack_out_dir)?;
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -223,9 +223,11 @@ fn start_desktop(config: &CrateConfig, skip_assets: bool) -> Result<(RAIIChild,
|
|||||||
file.set_extension("exe");
|
file.set_extension("exe");
|
||||||
}
|
}
|
||||||
let active = "DIOXUS_ACTIVE";
|
let active = "DIOXUS_ACTIVE";
|
||||||
let child = RAIIChild(Command::new(file.to_str().unwrap())
|
let child = RAIIChild(
|
||||||
.env(active, "true")
|
Command::new(file.to_str().unwrap())
|
||||||
.spawn()?);
|
.env(active, "true")
|
||||||
|
.spawn()?,
|
||||||
|
);
|
||||||
|
|
||||||
Ok((child, result))
|
Ok((child, result))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user