moved from tauri to a server with embedded UI

This commit is contained in:
Dave
2026-02-13 12:31:36 +00:00
parent d4203cfaab
commit 0876c53e17
79 changed files with 5755 additions and 10655 deletions

23
server/build.rs Normal file
View File

@@ -0,0 +1,23 @@
use std::fs;
use std::path::Path;
fn main() {
let dist_dir = Path::new("../frontend/dist");
println!("cargo:rerun-if-changed=build.rs");
if let Ok(entries) = fs::read_dir(dist_dir) {
for entry in entries.flatten() {
let path = entry.path();
if path.is_dir() {
if let Ok(sub_entries) = fs::read_dir(&path) {
for sub_entry in sub_entries.flatten() {
println!("cargo:rerun-if-changed={}", sub_entry.path().display());
}
}
} else {
println!("cargo:rerun-if-changed={}", path.display());
}
}
}
}