2nd attempt

This commit is contained in:
jude
2026-05-25 20:29:14 +01:00
parent b1fda50d4c
commit d77ff6b216
6 changed files with 17 additions and 8 deletions
+10 -3
View File
@@ -8,19 +8,26 @@ fn main() {
.arg("run")
.arg("build")
.current_dir(Path::new("reminder-dashboard"))
.env("VITE_VERSION", env!("CARGO_PKG_VERSION"))
.spawn()
.expect("Failed to build NPM");
.expect("Failed to build NPM")
.wait()
.expect("Failed to wait for NPM build");
Command::new("cp")
.arg("reminder-dashboard/dist/index.html")
.arg("static/index.html")
.spawn()
.expect("Failed to copy index.html");
.expect("Failed to copy index.html")
.wait()
.expect("Failed to wait for index.html copy");
Command::new("cp")
.arg("-r")
.arg("reminder-dashboard/dist/static/assets")
.arg("static/")
.spawn()
.expect("Failed to copy assets");
.expect("Failed to copy assets")
.wait()
.expect("Failed to wait for assets copy");
}