gpui-component/crates/wef/tool/src/commands/add_framework.rs
Sunli b70b229370
wef: Added a new WebView component named "Wef" based on CEF. (#877)
Wef is a Rust library for embedding WebView functionality using Chromium
Embedded Framework (CEF3) with offscreen rendering support.
2025-06-17 18:57:44 +08:00

25 lines
574 B
Rust

use std::path::PathBuf;
use anyhow::Result;
#[allow(unused_variables)]
pub(crate) fn add_framework(
app_path: PathBuf,
release: bool,
force: bool,
wef_version: Option<String>,
wef_path: Option<PathBuf>,
) -> Result<()> {
let cef_root = crate::internal::find_cef_root();
crate::internal::add_cef_framework(&cef_root, &app_path, release, force)?;
#[cfg(target_os = "macos")]
crate::internal::add_helper(
&app_path,
wef_version.as_deref(),
wef_path.as_deref(),
release,
force,
)?;
Ok(())
}