fix(tauri): prefer bundled server entry in release#405
fix(tauri): prefer bundled server entry in release#405pascalandr merged 1 commit intoNeuralNomadsAI:devfrom
Conversation
Release builds should launch the server bundle shipped next to the desktop executable before falling back to a workspace checkout. This keeps packaged Tauri runs self-contained while preserving the existing workspace fallback for local development layouts. Validation: inspected the resolved candidate order and kept the change scoped to production entry selection.
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Understood request: perform a strict gatekeeper review of the latest PR state for regressions, implementation quality, and better alternatives. I treated this as review-only and did not change code. Gatekeeper ResultNo blocking findings found. The PR is tightly scoped to Regression Review
Better Implementation Notes
Validation Performed
Residual Risk
-- |
Why
When running the Tauri release executable from
target/release, the app should start the server bundle that was packaged next to the executable:target/release/resources/server/dist/bin.jsBefore this change,
resolve_prod_entry()checked the workspace build first:packages/server/dist/bin.jsThat can make a release run depend on the local checkout instead of the packaged resources. It also makes rebuild/runtime checks misleading, because the exe may appear to work while using files outside the release bundle.
What Changed
packages/server/dist/bin.jspath as a fallback.Validation
cli_manager.rs.target/release/resources/server/dist.