8 Commits

Author SHA1 Message Date
lipeh1
71303c0b96 fix: extract desktop bundles into the physical staging directory (#2801)
* fix: extract desktop bundles into the physical staging directory

* test(desktop): clarify Windows junction fallback coverage

---------

Co-authored-by: lipeih <lipeihan@eazytec.com>
2026-11-30 04:09:50 -03:00
zszz3
541cefb8f8 fix(desktop): fail the startup handoff when the chat page never loads
The splash now waits for the hidden view's loadURL before handing off.
If that load never settles, the shell stays in "starting" with no Retry,
and the menu's Restart Core is ignored because boot() is still busy.

Bound the load to 60 seconds. On timeout boot() reports an error, the
view is removed, and Retry starts the core again.
2026-11-26 19:49:04 +08:00
Bingxi Zhao (Frank)
080a33da87 Protect desktop release credentials and rotate runtime trust key 2026-11-20 16:42:26 +08:00
Gaurav Dubey
ae5edd0216 test(desktop): cover the startup runtime choice
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.
2026-11-12 12:22:38 +00:00
Gaurav Dubey
6de2d1ea2c fix(desktop): activate the bundled core after an in-place upgrade
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
2026-11-12 12:19:42 +00:00
Bingxi Zhao (Frank)
991c40e67f fix(desktop): support Unicode paths during Windows first launch 2026-10-30 07:51:47 +08:00
Bingxi Zhao (Frank)
ce4380f3e7 feat(desktop): add Intel Mac and Windows editions with platform builds 2026-10-30 07:20:55 +08:00
Bingxi Zhao (Frank)
a4fa63b6e2 feat(desktop): add Open DeepTutor for macOS under apps/desktop
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>
2026-10-29 19:20:15 +08:00