mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-14 20:55:26 +02:00
chore: update tauri
This commit is contained in:
@@ -12,8 +12,17 @@ use tauri_plugin_store::StoreExt;
|
||||
mod app;
|
||||
use app::settings::AppSettings;
|
||||
|
||||
// Every CEF application is also its own renderer, GPU, network and utility
|
||||
// process. This attribute runs the helper side of that and returns before the
|
||||
// Tauri application is built, for any process Chromium launched with `--type=`.
|
||||
#[cfg_attr(feature = "cef", tauri_runtime_cef::cef_entry_point)]
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
#[cfg(feature = "cef")]
|
||||
let builder = tauri::Builder::default().runtime(tauri_runtime_cef::Cef::default());
|
||||
#[cfg(not(feature = "cef"))]
|
||||
let builder = tauri::Builder::default().runtime(tauri_runtime_wry::Wry::default());
|
||||
|
||||
builder
|
||||
.plugin(tauri_plugin_store::Builder::new().build())
|
||||
.setup(|app| {
|
||||
// Init store and load it from disk
|
||||
|
||||
Reference in New Issue
Block a user