27 Commits

Author SHA1 Message Date
Leveling
efea7b5c8d fix(desktop): explain why Apple notarization produced no result (#2723)
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.
2026-12-01 17:41:37 +08:00
LIziak112
9ea0e96040 fix(desktop): preserve Windows content zoom across restarts (#2970)
* 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.
2026-12-01 14:37:47 +08:00
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
Chen jizhou
58501be31a fix: allow bounded recovery after desktop readiness misses (#2696)
Co-authored-by: chen-12-03 <184723954+chen-12-03@users.noreply.github.com>
2026-11-30 14:18:43 +08:00
Qiu
506cea9d4f feat(desktop): finish Windows chat file actions (#3051)
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>
2026-11-28 13:09:15 -03:00
LIziak112
ad355f454e feat(desktop): sync Windows menu preferences with web settings (#2971)
* 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
2026-11-28 08:07:22 -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
LIziak112
e5098660c5 fix(desktop): hand off the splash when web content is visible 2026-11-25 21:07:18 +08:00
Bingxi Zhao (Frank)
080a33da87 Protect desktop release credentials and rotate runtime trust key 2026-11-20 16:42:26 +08:00
Bingxi Zhao (Frank)
800b11e9eb fix(desktop): discover host CLIs when launched from Finder
Local dev repairs for #2340. Regression checks cover reported symptoms and compatibility boundaries.
2026-11-15 00:44:10 +08:00
Gaurav Dubey
ff43aec3a0 fix(desktop): adopt the bundled core when there is no workspace to back up
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.
2026-11-12 12:24:17 +00:00
Gaurav Dubey
8a7ec68a45 docs(desktop): describe adopting the bundled core after an app upgrade 2026-11-12 12:23:08 +00: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)
923ca871f3 ci(desktop): require Intel Mac and complete release downloads 2026-11-06 16:11:59 +08:00
iSanae233
2c5f844906 fix(desktop): address build dependency advisories
Override vulnerable ASAR dependencies and extend desktop shell checks to macOS runners.

Co-Authored-By: GPT-6 Astra <noreply@openai.com>
2026-11-01 20:35:44 +08:00
Bingxi Zhao (Frank)
4d7090447e Integrate Turkish across complete locale chain, runtime messages and desktop shell 2026-10-31 18:14:34 +08:00
Bingxi Zhao (Frank)
0e84ab77fa Integrate reviewed changes and complete Portuguese translations 2026-10-31 18:04:54 +08:00
Bingxi Zhao (Frank)
c836ca354d Merge reviewed locale chain and preserve Vietnamese shared language selection 2026-10-31 17:32:10 +08:00
Bingxi Zhao (Frank)
6403fe13a1 fix(desktop): sign bundled native code before notarization 2026-10-31 11:30:12 +08:00
Bingxi Zhao (Frank)
40c051b731 fix(desktop): compare runtime signing keys independently of PEM line endings 2026-10-30 22:14:57 +08:00
Bingxi Zhao (Frank)
bb093359a1 ci(desktop): validate configured signing on dev without publishing 2026-10-30 22:02:54 +08:00
d41sys
9ddbb92c36 feat: add Vietnamese localization 2026-10-30 02:28:18 +01: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)
ebbda6e321 test(desktop): verify Windows installer lifecycle and preserve user files 2026-10-30 07:23:57 +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