mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-03 00:21:34 +03:00
b9a9de6b64
* remove bench test lock Signed-off-by: David Lemarier <david@lemarier.ca> * use tauri commands to close the app Signed-off-by: David Lemarier <david@lemarier.ca>
21 lines
531 B
Rust
21 lines
531 B
Rust
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#![cfg_attr(
|
|
all(not(debug_assertions), target_os = "windows"),
|
|
windows_subsystem = "windows"
|
|
)]
|
|
|
|
#[tauri::command]
|
|
fn app_completed_successfully() {
|
|
std::process::exit(0);
|
|
}
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.invoke_handler(tauri::generate_handler![app_completed_successfully])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|