Files
paseo/packages/desktop/src-tauri/src/main.rs
T
2026-03-11 23:13:36 +07:00

16 lines
606 B
Rust

// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// `tauri dev` runs the raw executable (`target/debug/Paseo`) on macOS (not the .app bundle),
// so we must embed an Info.plist containing usage descriptions for WebKit media
// permission prompts in dev.
#[cfg(all(target_os = "macos", debug_assertions))]
tauri::embed_plist::embed_info_plist!("../Info.plist");
fn main() {
if let Some(exit_code) = paseo_lib::try_run_pre_tauri_mode() {
std::process::exit(exit_code);
}
paseo_lib::run();
}