mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
12 lines
474 B
Rust
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");
|
|
}
|