diff --git a/build.rs b/build.rs index d6010700f8e4aa51f65c06f38edb3b858b016353..b2619c2fc246d870b113c87e1d44bee797e61b20 100644 --- a/build.rs +++ b/build.rs @@ -8,8 +8,10 @@ fn main() -> std::io::Result<()> { let source = format!("src/docroot/pandoc-{target}"); let target = "src/docroot/main/.tools/pandoc"; - print!("copying pandoc {source} to {target}\n"); + print!("creating target folder\n"); + fs::create_dir_all("src/docroot/main/.tools/")?; + print!("copying pandoc {source} to {target}\n"); fs::copy(source, target)?; Ok(()) } \ No newline at end of file