Skip to content

Spec: Electron build and runtime packages current #370

Done
8 of 8 issues completed
Done

Description

@jtklein-agents

Problem Statement

A person using raxmlGUI installs it, runs analyses, reports crashes and receives updates through a handful of Electron-specific packages. The shell already runs on electron-vite and the current Electron, but those packages lag: electron-builder 24, electron-store 8, electron-log 4, @sentry/electron 4. The release job runs on an unmaintained GitHub Action that uploads draft releases from branch pushes and can publish an unsigned macOS app without the notarize guard. The packaged app sets no Electron Fuses. Install still pulls packages nothing uses.

Solution

The app looks and behaves as it does now. Underneath, electron-builder 26 packs, signs and publishes, and sets Electron Fuses. electron-store 12, electron-log 5 and @sentry/electron 8 replace their old versions without moving a user's settings or log file. Crash reports no longer carry the user's IP. The release job is plain yarn + electron-builder steps that publish only from v* tags and refuse to release an unsigned macOS app. The binary download script uses Node's own fetch, and unused install-time packages go away. A manual release-candidate check proves the signed, fused, auto-updated app on macOS before the next release.

User Stories

  1. As a person upgrading from 2.0.19, I want my dark-mode setting kept, so that the update changes nothing I chose.
  2. As a person upgrading from 2.0.19, I want my log file to stay where it was, so that a support request can still point at it.
  3. As a person using raxmlGUI, I want auto-update to keep working from the version I have, so that I get fixes without reinstalling.
  4. As a person using raxmlGUI, I want crash reports without my IP address, so that reporting an error shares no more than it needs.
  5. As a person using raxmlGUI, I want the installed app to refuse a tampered app.asar and ignore Node debug switches, so that nothing can run code under the app's signature.
  6. As the maintainer, I want branch pushes to build on all three OSes and publish nothing, so that no stray draft releases appear.
  7. As the maintainer, I want a tag build to fail when the macOS signing certificate is missing, so that an unsigned or unnotarized app can never be published.
  8. As the maintainer, I want page errors in Sentry under raxmlGUI@<version> with source-mapped frames, so that crash reports stay readable.
  9. As a developer, I want yarn download-binaries to skip the download when the binaries are already there, so that installs stay fast.

Implementation Decisions

Each decision lives on its map ticket under Map: current Electron build and runtime packages on electron-vite and electron-builder:

The sandboxed preload stays CommonJS. The Electron major version does not change.

Testing Decisions

  • Every child passes yarn verify and the app e2e on macOS, Ubuntu and Windows.
  • A unit test asserts the electronFuses block, like src/main/pageWindowPreferences.test.ts does for window preferences.
  • e2e keeps launching out/main/index.js on the dev Electron; a fused build can't be driven by Playwright.
  • The last child is a manual release-candidate check on macOS; it is the only proof of signing, notarizing, fuses, auto-update and Sentry delivery from a packaged build.

Out of Scope

Electron Forge; Electron major bumps; electron-builder 27 / electron-updater 7; ESM output for main; renderer logging; turning off grantFileProtocolExtraPrivileges; e2e on the packaged app; a CI release redesign beyond the action replacement. The packaged __static path bug is fixed outside this spec in Packaged app looks for the RAxML binaries in the build machine's checkout; the release-candidate check waits on it.

Further Notes

Research notes live on the unmerged research/* branches linked from each research ticket. Order: electron-builder 26 first; the release job and Fuses follow it; electron-store, electron-log, Sentry and the package cleanup run in parallel; the release-candidate check comes last.

Sub-issues

Sub-issues

8 of 8 Issues completed
Loading 8 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions