[Add] basic Tauri
This commit is contained in:
parent
f23bd4cfef
commit
9904e54914
8 changed files with 261 additions and 55 deletions
|
|
@ -1,8 +1,10 @@
|
|||
mod notifications;
|
||||
mod server;
|
||||
mod sql;
|
||||
mod transport;
|
||||
mod util;
|
||||
|
||||
use crate::notifications::tauri;
|
||||
use crate::sql::sql::initialize_db;
|
||||
use crate::sql::sql::print_users;
|
||||
use crate::transport::omikron_connection;
|
||||
|
|
@ -42,6 +44,13 @@ async fn main() {
|
|||
}
|
||||
});
|
||||
|
||||
tokio::spawn(async move {
|
||||
match tauri::start(9189).await {
|
||||
Err(e) => log_err!(0, PrintType::General, "{:?}", e),
|
||||
_ => {}
|
||||
}
|
||||
});
|
||||
|
||||
log!("Started");
|
||||
log!(" .env");
|
||||
if let Err(e) = initialize_db().await {
|
||||
|
|
|
|||
Loading…
Reference in a new issue