mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
28 lines
550 B
Rust
28 lines
550 B
Rust
use cef::{args::Args, *};
|
|
|
|
fn main() {
|
|
let args = Args::new();
|
|
|
|
#[cfg(all(target_os = "macos", feature = "sandbox"))]
|
|
let _sandbox = {
|
|
let mut sandbox = cef::sandbox::Sandbox::new();
|
|
sandbox.initialize(args.as_main_args());
|
|
sandbox
|
|
};
|
|
|
|
#[cfg(target_os = "macos")]
|
|
let _loader = {
|
|
let loader = library_loader::LibraryLoader::new(&std::env::current_exe().unwrap(), true);
|
|
assert!(loader.load());
|
|
loader
|
|
};
|
|
|
|
execute_process(
|
|
Some(args.as_main_args()),
|
|
None::<&mut App>,
|
|
std::ptr::null_mut(),
|
|
);
|
|
}
|
|
|
|
|