559d17d1f2
- src-tauri/ with Rust backend, Cargo.toml, main.rs, lib.rs - tauri.conf.json: Linux deb bundle with webkit2gtk deps - package.json: added tauri script - Build on a machine with Rust: cd web && npm run tauri build
17 lines
417 B
Rust
17 lines
417 B
Rust
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
pub fn run() {
|
|
tauri::Builder::default()
|
|
.setup(|app| {
|
|
if cfg!(debug_assertions) {
|
|
app.handle().plugin(
|
|
tauri_plugin_log::Builder::default()
|
|
.level(log::LevelFilter::Info)
|
|
.build(),
|
|
)?;
|
|
}
|
|
Ok(())
|
|
})
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|