Repository navigation
Fix daemon updates when desktop packaging omits README - #3126
Merged
Merged
Conversation
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.
Human comments
What was wrong
Electron Builder excludes top-level dependency README files, but the server unconditionally copied
bb-app/README.mdwhen generating an enrolled daemon's update package. In Desktop 0.42.0 this throwsENOENTbeforenpm pack, making/install/bb-app.tgzreturn HTTP 500 and preventing outdated daemons from updating. The reproduction report verified the omission in two macOS builds; a new regression test reproduces the same failure on unchanged main.What changed
The artifact service now tolerates
ENOENTonly for the README copy and preserves the file when present. Required runtime files and other copy errors still fail. This differs from the report's proposed packaging override: documentation is optional when assembling the runtime package, so Electron Builder's default exclusion no longer breaks updates. No daemon wire contract changes or protocol bump are needed.How you verified
npm packand inspecting the tarball for every required runtime file.pnpm exec turbo run test --filter=@bb/server -- test/app/bb-app-artifact.test.ts test/app/install-machine-script.test.ts— 37 tests passed.pnpm exec turbo run typecheck --filter=@bb/server— passed.git diff --check— passed. EAP codename scan: clean working tree, HEAD, added lines, and commit messages in the push range.Fixes #3118