Files
Graphite/desktop/build.rs
2025-07-22 14:59:00 -07:00

12 lines
474 B
Rust

use std::fs::metadata;
fn main() {
let frontend_dir = format!("{}/../frontend-native/dist", env!("CARGO_MANIFEST_DIR"));
println!("frontend_dir: {}", frontend_dir);
metadata(&frontend_dir).expect("Failed to find frontend directory. Please build the frontend first.");
metadata(format!("{}/index.html", &frontend_dir)).expect("Failed to find index.html in frontend directory.");
println!("cargo:rerun-if-changed=.");
println!("cargo:rerun-if-changed=../frontend");
}