mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 02:48:12 +08:00
Implement basic cef based desktop app
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
use std::fs::metadata;
|
||||
|
||||
fn main() {
|
||||
let frontend_dir = format!("{}/../frontend/dist", env!("CARGO_MANIFEST_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");
|
||||
}
|
||||
Reference in New Issue
Block a user