cp() rejects with ENOENT when the workspace folder does not exist, which made every start fail before the installed core could run. Skip the backup in that case; rollback already skips a missing backup.
Move the saved-versus-bundled decision out of main.mjs into startupRuntime() in bundles.mjs so npm test covers it: newer, older and tampered seeds, a seed that already failed, and an interrupted (not failed) one.
Installing a newer desktop build over an existing one left the app on the
old core: boot() started the runtime recorded in active.json whenever it
existed and only read the bundled seed on a fresh install.
On start, compare the signed seed manifest with the active runtime and
switch to the seed when its coreVersion is strictly newer. The switch uses
the same workspace backup and upgrade transaction as a manual update, and
rolls back if the new core fails its first start; a seed that failed is not
retried on every launch. An unreadable seed keeps the installed core
starting, and a newer core installed by hand is never replaced by an older
bundled one.
Closes#2620
Move the Electron macOS app into the main repository and ship it with every
DeepTutor release.
- apps/desktop: Electron shell that installs a signed bundled runtime and
hosts the web UI; versioned with the bundled core.
- White app icon with the black DeepTutor mark, generated by
scripts/make-icon.swift; redesigned start screen and title bar.
- Shell copy in en/zh/de/fr/pl/uk, starting in English and following the
interface language and theme from DeepTutor Settings, including live changes.
- Web UI labels itself "Open DeepTutor MacOS v<version>" inside the app
(user-agent marker) and "Open DeepTutor Web v<version>" in a browser.
- Sealing refuses a missing or mismatched signing key instead of silently
generating a new one.
- desktop-release.yml builds, smoke-tests and attaches the DMG to each
GitHub Release; Developer ID signing and notarization run when secrets exist.
- tests.yml runs the shell checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>