обновление сборщика
This commit is contained in:
@@ -119,35 +119,6 @@ fn stage_loose_assets(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn stage_customization_archives(
|
||||
project_root: &Path,
|
||||
output_dir: &Path,
|
||||
) -> Result<(), Box<dyn Error>> {
|
||||
let source_dir = project_root.join("new customization mpqs");
|
||||
let locale_dir = output_dir.join("Data").join("ruRU");
|
||||
let archives = [
|
||||
("patch-a-001.mpq", "patch-ruRU-X.MPQ"),
|
||||
("patch-b-002.mpq", "patch-ruRU-Y.MPQ"),
|
||||
];
|
||||
|
||||
for (source_name, target_name) in archives {
|
||||
let source = source_dir.join(source_name);
|
||||
if !source.is_file() {
|
||||
println!(
|
||||
"Customization archive not staged (missing): {}",
|
||||
source.display()
|
||||
);
|
||||
continue;
|
||||
}
|
||||
fs::create_dir_all(&locale_dir)?;
|
||||
let target = locale_dir.join(target_name);
|
||||
fs::copy(&source, &target)?;
|
||||
println!("Staged customization archive: {}", target.display());
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
||||
@@ -214,8 +185,6 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
}
|
||||
|
||||
stage_customization_archives(&project_root, &output_dir)?;
|
||||
|
||||
println!("\nAll MPQ archives built successfully.");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user