Repository navigation
Resolve the static folder from the app's Resources when packaged - #524
Merged
jtklein merged 1 commit intoNov 25, 2026
Merged
Conversation
electron.vite.config.js baked the build machine's absolute static/ path into out/main/index.js as __static, so a packaged app looked for RAxML, readal and ASTRAL in the CI runner's checkout. getStaticDir() now uses process.resourcesPath/static when packaged, where extraResources copies the binaries, and the repo's static/ otherwise. The __static define and its declaration are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes jtklein-agents#369.
Summary
Since the move to electron-vite,
__staticwas a build-time define holding the build machine's absolutestatic/path. A packaged app looked for RAxML, readal and ASTRAL in the CI runner's checkout.The
__staticdefine inelectron.vite.config.jsandsrc/__static.d.tsare removed. Example files are unaffected:getExampleFilesruns only in dev and e2e.Evidence
out/main/index.jscontains the builder's absolute".../raxmlGUI/static"path.binaryDirpoints outside the app bundle.After:
yarn dist-pack(signing off), then:yarn test474 passed;yarn test:e2e4 passed (unpacked path).Merge Danger
Door: two-way
Blast Radius: packaged-runs
Every packaged-app run resolves its binaries through this path. A wrong path would break all RAxML, ModelTest and ASTRAL runs in the release build, though not in dev or e2e. Worth one manual run from a packed build before the release candidate.
🤖 Generated with Claude Code