mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 08:42:20 +08:00
Add error message when webui submodules are not pulled
This commit is contained in:
4
build.rs
4
build.rs
@@ -9,4 +9,8 @@ fn main() {
|
|||||||
.compile("libc_code.a");
|
.compile("libc_code.a");
|
||||||
println!("cargo:rerun-if-changed=src/log.c");
|
println!("cargo:rerun-if-changed=src/log.c");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !std::fs::exists("webui/index.html").unwrap_or(false) {
|
||||||
|
panic!("Could not compile crate! Missing webui! Did you pull submodules?");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user