diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 10:31:05 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 10:31:05 +0000 |
| commit | 21d0f61f100a778b505169b62e1cf2b615c1833e (patch) | |
| tree | da2e791e566c9cd75d541d94b288ef06bd599a81 /bundle/src-tauri/src/main.rs | |
| parent | 273555f53458eb80d15c3d5c1910e57428818ee4 (diff) | |
feat(bundle): report newer nightly builds on startup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bundle/src-tauri/src/main.rs')
| -rw-r--r-- | bundle/src-tauri/src/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bundle/src-tauri/src/main.rs b/bundle/src-tauri/src/main.rs index 37b7431..c361260 100644 --- a/bundle/src-tauri/src/main.rs +++ b/bundle/src-tauri/src/main.rs @@ -3,6 +3,7 @@ mod compiler; mod menu; mod runner; +mod update; use compiler::Compiler; use runner::{OutputEvent, Runner}; use std::{ @@ -90,6 +91,12 @@ fn main() { let compiler = Compiler::load(); tauri::Builder::default() .plugin(tauri_plugin_dialog::init()) + .plugin(tauri_plugin_opener::init()) + // Once per launch, not per window. + .setup(|app| { + update::check(app.handle().clone()); + Ok(()) + }) .menu(menu::build) // Menu items act on the focused window, like its keyboard shortcuts. .on_menu_event(|app, event| { |
