mirror of
https://github.com/arabianq/build_msp.git
synced 2026-04-28 06:21:24 +00:00
fixed deleting build_romfs and build_pfs0 before it's usage
This commit is contained in:
+2
-3
@@ -151,9 +151,6 @@ fn main() -> Result<(), Error> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_file(&build_romfs_path)?;
|
|
||||||
remove_file(&build_pfs0_path)?;
|
|
||||||
|
|
||||||
println!("Building {}...", output_path.display());
|
println!("Building {}...", output_path.display());
|
||||||
std::process::Command::new(&build_pfs0_path)
|
std::process::Command::new(&build_pfs0_path)
|
||||||
.current_dir(&temp_path)
|
.current_dir(&temp_path)
|
||||||
@@ -161,6 +158,8 @@ fn main() -> Result<(), Error> {
|
|||||||
.arg(&output_path)
|
.arg(&output_path)
|
||||||
.status()?;
|
.status()?;
|
||||||
|
|
||||||
|
remove_file(&build_romfs_path)?;
|
||||||
|
remove_file(&build_pfs0_path)?;
|
||||||
remove_dir_all(&temp_path)?;
|
remove_dir_all(&temp_path)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user