added version number, fixed infinite update loop

This commit is contained in:
Uber Veng
2026-05-22 01:26:21 +07:00
parent 3fafc71cdd
commit b395df590e
6 changed files with 70 additions and 4 deletions

View File

@@ -517,6 +517,12 @@ impl App {
.await
{
Ok(exe_path) => {
// Write expected version before exec so
// the next startup can detect a failed
// replacement (wrong asset, etc.).
updater::write_update_target(
&info_clone.new_version,
);
let _ = tx2.send(Event::UpdateDone(exe_path));
}
Err(e) => {