Skip to content

Packaged app looks for the RAxML binaries in the build machine's checkout #369

Done
AntonelliLab/raxmlGUI
#524

Description

@jtklein-agents

What happens

electron.vite.config.js defines __static as JSON.stringify( resolve( __dirname, 'static' ) ), an absolute path on the machine that runs yarn build. The current out/main/index.js contains the literal "/Users/johannesklein/Documents/GitHub/raxmlGUI/static".

getStaticDir() (src/main/processHelpers.ts:38) returns __static unless RAXMLGUI_E2E=1, and binaryDir (src/main/processHelpers.ts:60) is built from it. In a packaged app the binaries are copied by extraResources to <Resources>/static/bin, but binaryDir points at the CI runner's checkout, so RAxML, readal and ASTRAL runs should fail to find their binaries. The bundled example files under static/example-files are probably affected the same way.

Where it came from

Shell on electron-vite with Node shut out of the page (AntonelliLab#492, aabe50a). electron-webpack, which this replaced, resolved __static to process.resourcesPath/static in production. 2.0.19 predates the move, so no shipped release is affected; the next release would be.

e2e does not catch it: it sets RAXMLGUI_E2E=1 and runs the unpacked out/main/index.js.

To confirm

Run yarn dist-pack, move or rename the checkout's static/ folder, launch the packed app and start a run; or log binaryDir from the packed app.

Why it matters now

It blocks the manual release-candidate check in Map: current Electron build and runtime packages on electron-vite and electron-builder.

Activity

  1. added
    needs-triage
    on Nov 24, 2026
  2. jtklein-agents commented on Nov 25, 2026

    @jtklein-agents
    OwnerAuthor

    Fixed upstream in AntonelliLab#524.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions