Fix early chapters compilation

This commit is contained in:
Jáchym Toušek
2019-05-29 22:56:00 +02:00
parent 6099699319
commit 39ee4769b4

View File

@@ -159,7 +159,10 @@ fn main() {
assert!(status.success());
fs::remove_file(format!("{}/sharedassets0.assets.bak0000", &directory_data)).expect("Failed to remove file");
fs::remove_file(format!("{}/sharedassets0.assets.resS", &directory_data)).expect("Failed to remove file");
let res_file = format!("{}/sharedassets0.assets.resS", &directory_data);
if Path::new(&res_file).exists() {
fs::remove_file(&res_file).expect("Failed to remove file");
}
fs::remove_file(&emip).expect("Failed to remove file");
// 7. pack with 7zip