diff --git a/build.rs b/build.rs index 46e1a2c..f76dfd8 100644 --- a/build.rs +++ b/build.rs @@ -3,6 +3,8 @@ use std::fs; fn main() { println!("cargo:rerun-if-changed=index.html"); + let _ = fs::create_dir_all("pkg"); + if let Err(e) = fs::copy("index.html", "pkg/index.html") { eprintln!("Error: Couldn't copy index.html: {}", e); }