ffplayout/ffplayout-api/build.rs

16 lines
414 B
Rust
Raw Normal View History

use static_files::NpmBuild;
fn main() -> std::io::Result<()> {
2024-02-08 02:13:53 -05:00
if !cfg!(debug_assertions) && cfg!(feature = "embed_frontend") {
NpmBuild::new("../ffplayout-frontend")
.install()?
.run("generate")?
.target("../ffplayout-frontend/.output/public")
.change_detection()
.to_resource_dir()
.build()
} else {
Ok(())
}
}