Skip to content

chore: upgrade Electron from EOL 39 to 43.1.1 - #1123

Merged
Astro-Han merged 2 commits into
mainfrom
chore/electron-43-upgrade
Jul 16, 2026
Merged

Astro-Han merged 2 commits into
mainfrom
chore/electron-43-upgrade

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

Electron 39 reached end-of-life on 2026-05-05 and is outside the supported three-major window (41/42/43). This PR upgrades the desktop shell from locked 39.8.10 to current stable 43.1.1 (Chromium M150 / Node 24.18.0) in one step.

Closes #1118

Changes

  • apps/desktop: electron ^39.2.7 → ^43.1.1
  • root allowScripts: pin install script allowlist to [email protected]
  • lockfile: drop Electron 39 download stack (got / global-agent / …), pick up Electron 43 install deps (@electron/get@5, @electron-internal/extract-zip, …)

No application code changes. Direct 39 → 43 matches the exploratory verification on the issue: staged intermediate majors were unnecessary after a clean green run.

Verification

Ran on macOS arm64 against this branch:

Check Result
npm run rebuild pass
npm --workspace @maka/desktop test 2572 pass / 0 fail
npm --workspace @maka/desktop run e2e 25 pass / 0 fail
node_modules/.bin/electron --version v43.1.1

Manual / residual notes (from #1118 validation)

  • Electron 42+ downloads the binary on first use rather than postinstall — local install path verified; Linux CI should re-confirm.
  • Electron 43 open dialogs without defaultPath start in Downloads; Maka open dialogs that omit it (workspace dir / config import / resources) deserve a quick manual check after merge.
  • Electron 42 macOS notifications use UNNotification; signed-build notification behavior is a manual check.
  • esbuild / @playwright/test left unchanged; Playwright drives the project Electron binary and passed the full E2E suite.
  • smoke:browser currently fails 17/19 on both Electron 39 (main) and 43 (this branch) in this environment: the first direct CDP click reports matches_n=1 but the fixture click handler does not run; the later visible-lease click path passes. Not treated as an upgrade regression.

Review focus

  • Confirm the lockfile delta is only the Electron install graph.
  • Confirm CI install + Linux Electron download path on first launch.

Electron 39 reached end-of-life on 2026-05-05. Bump the desktop app to the current stable major so Chromium security fixes continue to land.

Closes #1118
Electron 43 no longer ships a postinstall lifecycle script; the binary
downloads on first use. The allowScripts entry was inert and misleading.
@Astro-Han
Astro-Han merged commit b927d63 into main Jul 16, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the chore/electron-43-upgrade branch July 24, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: upgrade Electron from EOL 39 to a supported version

1 participant