mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-05 07:54:38 +00:00
16 lines
606 B
Rust
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();
|
|
}
|