Generate webui artifacts as part of build process

This commit is contained in:
Igor Katson 2024-08-12 20:12:08 +01:00
parent 14aa4a2f11
commit 6d2c32fb48
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -2,6 +2,8 @@ use std::path::Path;
use std::process::Command; use std::process::Command;
fn main() { fn main() {
#[cfg(feature = "webui")]
{
let webui_dir = Path::new("webui"); let webui_dir = Path::new("webui");
let webui_src_dir = webui_dir.join("src"); let webui_src_dir = webui_dir.join("src");
@ -25,3 +27,4 @@ fn main() {
// Optionally print the stdout output if you want to see the build logs // Optionally print the stdout output if you want to see the build logs
println!("{}", String::from_utf8_lossy(&output.stdout)); println!("{}", String::from_utf8_lossy(&output.stdout));
} }
}