Repository navigation
Updates: the updater reports installing, ready, installed and failed, and installs at exit - #3621
Merged
dylanmtaylor merged 1 commit intoNov 9, 2026
Conversation
… and installs at exit craft-update, craft-window, craft-print and craft-ui move from craft-libs c5a1cbfb to c7c84230, a branch with storytold/craft-libs#687 and storytold#696 merged into craft-libs main. - The check result window shows whenever the updater's status is not idle, so the first start after an update reports that it installed or why it failed. Restart to Update asks the app to quit once nothing is unsaved. - An update's close request quits the app (Quit asks about each unsaved workbook), so every workbook window closes. - on_exit starts the install helper of a ready update before the macOS process exit.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
dylanmtaylor
approved these changes
Nov 9, 2026
dylanmtaylor
left a comment
Member
There was a problem hiding this comment.
LGTM. craft-libs#696 is merged into main.
dylanmtaylor
marked this pull request as ready for review
November 9, 2026 03:12
dylanmtaylor
approved these changes
Nov 9, 2026
dylanmtaylor
left a comment
Member
There was a problem hiding this comment.
LGTM. craft-libs#696 is merged to main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft until storytold/craft-libs#687 and storytold/craft-libs#696 merge. The craft-libs pin points at
dotCooCoo/craft-libsc7c84230, a branch that is craft-libsmainat0a9d1f48with those two pull requests merged in, #687 first. When both merge, the pin moves to the craft-libs merge commit onstorytold/craft-libsand the pull request is marked ready.What changes
Cargo.toml,apps/gridcraft/Cargo.toml,crates/ui-egui/Cargo.toml:craft-update,craft-window,craft-printandcraft-uimove together fromc5a1cbfbtoc7c84230.Cargo.lockchanges the six craft-libs entries, moveswinprintandcraft-winprint-gdito64e7afd4(craft-print's pin), and dropszopflifromzip. The web app'scraft-web-apiandcraft-web-hoststay onfd5e2fef.crates/ui-egui/src/updates_ui.rs: the check result window now shows whenever the updater's status is not idle, not only after Help ▸ Check for Updates. At the first start after an update it reports that the update installed (Status::Updated) or why it failed (Status::InstallFailed). Its Restart to Update (Status::Ready) callsUpdater::restart_to_update. The newInstalling,ReadyandManagedstatuses show in the same window, which stays closed while the startup prompt is open.Action::Closefrom the updater now goes throughSheetApp::request_quit. Before, it closed only the current viewport, so with a second workbook window open the app kept running and the update did not install.apps/gridcraft/src/main.rs:on_exitcalls the newSheetApp::start_pending_updatebefore the macOSstd::process::exit(0). On Windows the install helper now starts at the app's exit instead of right after the download, so a canceled close keeps the update ready. On Windows and Linux dropping the updater starts it too.updates_ui::tests::result_window_shows_every_status_but_idle.The updater's dialogs stay in English: GridCraft does not pass a translator to craft-update.
Other craft-libs changes since
c5a1cbfbThe numbers are storytold/craft-libs pull requests.
zipwithout zlib-rs on Windows (608).64e7afd4(605).None of them needed a code change here.
Overlap
#3274 moves
craft-updatealone to37c845c4(the head of storytold/craft-libs#570). Whichever merges first, the other needs only the newer rev in the manifests andCargo.lock. Earlier pin changes onmainmoved all four craft-libs crates in one commit (79722c76,c7911c83, and94fcbf8b, which pinned a fork branch untilc7911c83moved it tostorytold/craft-libs), while outside pull requests #2586, #2928 and #2934 movedcraft-updatealone.Tested
On Windows 11, on
2c58c769(main) with this commit:cargo fmt --all -- --check: clean.cargo check --workspace --tests --locked: clean.cargo clippy -p gridcraft -p gridcraft-ui-egui -p gridcraft-web --all-targets --locked -- -D warnings(the crates that depend on craft-libs crates): clean.cargo test -p gridcraft -p gridcraft-ui-egui -p gridcraft-web --locked --no-fail-fastwithCRAFT_FONTS_DIRat craft-fontsb076417b(CI's pin): 8 test binaries, 1578 passed, 0 failed. Without craft-fonts,interaction::column_autocomplete_folds_case_beyond_asciiandinteraction::language_switch_renders_the_ribbon_and_persistsfail on missing glyphs; open UI tests: skip the glyphs the bundled fonts lack when craft-fonts is absent #2773 adds skips to both.Checking,UpToDateandFailed.cargo xtask assets,layers,parity --checkandkeytips --check: ok.