Fixed auto update

This commit is contained in:
Uber Veng
2026-05-22 00:24:19 +07:00
parent cb85dfa039
commit 65e189c913
5 changed files with 25 additions and 19 deletions

View File

@@ -74,7 +74,7 @@ async fn run_app(
}
// Check for pending restart (after update applied) — before pending_exec.
if app.pending_restart {
if let Some(exe_path) = app.pending_restart.take() {
disable_raw_mode()?;
execute!(
terminal.backend_mut(),
@@ -83,7 +83,7 @@ async fn run_app(
)?;
terminal.show_cursor()?;
#[cfg(unix)]
updater::exec_updated();
updater::exec_updated(&exe_path);
// fallback for non-unix or if exec failed
break;
}