build: Package folder eerst aanmaken
gitea/double-pendulum/pipeline/head This commit looks good

This commit is contained in:
Philippe Zwietering
2026-09-08 16:03:59 +02:00
parent 855d67b1fa
commit ba06b988af
+2
View File
@@ -3,6 +3,8 @@ use std::fs;
fn main() { fn main() {
println!("cargo:rerun-if-changed=index.html"); println!("cargo:rerun-if-changed=index.html");
let _ = fs::create_dir_all("pkg");
if let Err(e) = fs::copy("index.html", "pkg/index.html") { if let Err(e) = fs::copy("index.html", "pkg/index.html") {
eprintln!("Error: Couldn't copy index.html: {}", e); eprintln!("Error: Couldn't copy index.html: {}", e);
} }