feat #14740: updater and release scripts

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-06 11:37:57 +01:00
co-authored by Claude Opus 5.5
parent 345dd01147
commit 74511d791a
15 changed files with 1157 additions and 10 deletions
+7
View File
@@ -3,6 +3,7 @@ mod detection;
mod processing;
mod state;
mod tray;
mod updater;
use recorder_core::pipeline;
use recorder_core::secrets::KeyringSecrets;
@@ -12,6 +13,7 @@ use tauri_plugin_autostart::MacosLauncher;
use tauri_plugin_log::{RotationStrategy, Target, TargetKind, TimezoneStrategy};
use crate::state::AppState;
use crate::updater::PendingUpdate;
/// Command-line flag the login item starts the app with; the main window
/// then stays hidden in the tray.
@@ -31,6 +33,7 @@ pub fn run() {
Some(vec![AUTOSTART_ARG]),
))
.plugin(tauri_plugin_notification::init())
.plugin(tauri_plugin_updater::Builder::new().build())
.setup(|app| {
// Release builds log to a file in the app log directory (on
// Windows %LOCALAPPDATA%\eu.euvino.callrecorder\logs), debug
@@ -72,6 +75,7 @@ pub fn run() {
// Before anything can start a run.
processing::clear_upload_dir(app.handle());
app.manage(state);
app.manage(PendingUpdate::default());
// Windows are created here (`create: false` in tauri.conf.json)
// instead of by Tauri before `setup` runs: their webviews load
// immediately and invoke commands (list_calls, get_recording_state,
@@ -83,6 +87,7 @@ pub fn run() {
tray::create(app.handle())?;
detection::spawn(app.handle().clone());
updater::spawn(app.handle().clone());
if !std::env::args().any(|arg| arg == AUTOSTART_ARG) {
commands::show_main(app.handle());
}
@@ -120,6 +125,8 @@ pub fn run() {
commands::rename_call,
commands::list_accounts,
commands::set_account,
updater::get_update,
updater::install_update,
])
.run(tauri::generate_context!())
.expect("error while building tauri application");