Reimplement notice file generation for third-party licenses through Rust, now with CEF credits (#3808)

This commit is contained in:
Timon
2026-02-26 11:12:28 +00:00
committed by GitHub
parent 4090f6c980
commit da7437c023
40 changed files with 1729 additions and 777 deletions
+15
View File
@@ -0,0 +1,15 @@
fn main() {
println!("cargo:rerun-if-changed=src");
println!("cargo:rerun-if-env-changed=DEP_CEF_DLL_WRAPPER_CEF_DIR");
if let Ok(cef_dir) = std::env::var("DEP_CEF_DLL_WRAPPER_CEF_DIR") {
println!("cargo:rustc-env=CEF_PATH={cef_dir}");
}
let manifest_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
if std::env::var("CARGO_FEATURE_DESKTOP").is_ok() {
let _ = std::fs::remove_file(manifest_dir.join("desktop.hash"));
} else {
let _ = std::fs::remove_file(manifest_dir.join("web.hash"));
}
}