notarize.mjs kept only stdout from notarytool submit and reduced every
outcome to one 'no notarization result' error, so the v1.7.3 macOS jobs
failed with an empty {} artifact and nothing in the log (#2714).
notarytool reports most submission failures on stderr, which the script
discarded. Classify the four cases instead - the process never started,
it exited with no output, it printed no result, or it printed something
that is not JSON - and carry the reason into both the thrown message and
a notarization-submission.error.json artifact that records the exit code,
the spawn error and bounded stdout/stderr tails.
The account and password are redacted from everything written out, and
notarization-submission.json keeps its previous shape (raw stdout or {}),
so the upload step and any existing consumer are unaffected.
* fix(desktop): preserve Windows content zoom across restarts
* fix(desktop): apply rendered Windows content zoom
Use isolated webContents zoom so saved factors scale the rendered page without affecting the shell. Add native Windows Electron coverage for viewport and DPR changes, reloads, and cold-start restoration.
Continues #2978 and closes#2887. Includes the original Windows file actions, integrates the changes with dev, and adds an explicit default-app action.
Co-authored-by: Botong Wu <2048400180@qq.com>
* feat(desktop): sync Windows menu preferences with web settings
* fix(settings): reconcile desktop preferences after updating the live baseline
* fix(desktop): guard menu zoom handlers against missing web view
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.
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>