feat(app): the window tells when a newer version exists and where to get it (P15 C1)
Update is an ordinary app update: the newer package installed over the old one. The program's part is to say one exists. Once a day, on a thread of its own, it reads one small file a release publishes (latest.json: only a version number is taken from it; where to get the update is a fixed address in the program) and notes the answer in the data root's updates folder. A higher x.y.z shows a standing notice with a button that opens the download page and the words that books, keys and connections stay. Check for updates does the same look at once on every platform; where a program may replace itself with a signed release it also stages one as before. A macOS app is never replaced one file at a time (that breaks its signature): it is treated as managed, and says to drag the new app over the old. Window prose names the product Wanderbooks. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
2bc442f795
commit
90f663ed54
8 files changed
+510
-49
No files matched your search
@@ -409,6 +409,15 @@ impl ledger_gui::owner::Owner for ViewerOwner {
|
||||
})
|
||||
}
|
||||
|
||||
fn newer_version(&self) -> Option<ledger_gui::owner::NewerVersion> {
|
||||
ledger_host::commands::newer_version(&self.common).map(|(version, page)| {
|
||||
ledger_gui::owner::NewerVersion {
|
||||
version,
|
||||
page: page.to_string(),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fn check_for_updates(&self) -> Result<Vec<String>, String> {
|
||||
ledger_host::commands::check_for_updates(&self.common).map(|l| vec![l])
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user