← back to Logo Variants App

src-tauri/src/main.rs

22 lines

// Logo Showdown — Tauri v2 wrapper around http://127.0.0.1:9716/logo-variants.html.
//
// The window's URL is set declaratively in tauri.conf.json (app.windows[0].url),
// so this binary is intentionally tiny — Tauri handles the window, WKWebView
// handles the rendering. No frontend bundling needed since the page is served
// by the TSD Express server.

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
    tauri::Builder::default()
        .plugin(tauri_plugin_opener())
        .run(tauri::generate_context!())
        .expect("error while running Logo Showdown");
}

fn tauri_plugin_opener() -> tauri::plugin::TauriPlugin<tauri::Wry> {
    // Minimal noop plugin so we have a build dependency hook for future
    // upgrades (system menu, external-link opening, etc.).
    tauri::plugin::Builder::new("opener").build()
}