2021-04-11 01:09:09 +03:00
|
|
|
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2021-02-21 19:48:08 +03:00
|
|
|
#![cfg_attr(
|
|
|
|
all(not(debug_assertions), target_os = "windows"),
|
|
|
|
windows_subsystem = "windows"
|
|
|
|
)]
|
|
|
|
|
|
|
|
fn main() {
|
2022-06-15 16:51:40 +03:00
|
|
|
let context = tauri::generate_context!("../../examples/helloworld/tauri.conf.json");
|
2021-04-06 23:50:53 +03:00
|
|
|
tauri::Builder::default()
|
2022-06-29 20:03:42 +03:00
|
|
|
.menu(if cfg!(target_os = "macos") {
|
|
|
|
tauri::Menu::os_default(&context.package_info().name)
|
|
|
|
} else {
|
|
|
|
tauri::Menu::default()
|
|
|
|
})
|
2022-06-15 16:51:40 +03:00
|
|
|
.run(context)
|
2021-04-04 03:41:04 +03:00
|
|
|
.expect("error while running tauri application");
|
2021-02-21 19:48:08 +03:00
|
|
|
}
|