2023-10-31 23:43:33 +01:00
|
|
|
use static_files::NpmBuild;
|
|
|
|
|
|
|
|
fn main() -> std::io::Result<()> {
|
2024-02-08 08:13:53 +01:00
|
|
|
if !cfg!(debug_assertions) && cfg!(feature = "embed_frontend") {
|
2023-11-02 13:40:56 +01:00
|
|
|
NpmBuild::new("../ffplayout-frontend")
|
|
|
|
.install()?
|
|
|
|
.run("generate")?
|
|
|
|
.target("../ffplayout-frontend/.output/public")
|
|
|
|
.change_detection()
|
|
|
|
.to_resource_dir()
|
|
|
|
.build()
|
|
|
|
} else {
|
|
|
|
Ok(())
|
|
|
|
}
|
2023-10-31 23:43:33 +01:00
|
|
|
}
|