Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The lockfile still pins @electron/packager to 20.3.0, which conflicts with the declared ^20.3.1 range and will cause CI’s npm ci step to fail before the symlink fix can build.
1 open issue
What changed in this PR
This PR addresses the macOS bundle-size regression in #23236 by preserving bundled Git symlinks instead of expanding them into executable copies.
Changes:
- Raises
@electron/packagerto^20.3.1for its relative-symlink preservation fix. - Restores
derefSymlinks: false, reversing the workaround introduced in #22928.
| File | Description |
|---|---|
script/build.ts |
Preserves symlinks during application packaging. |
package.json |
Requires the packager release containing the symlink fix. |
Review effort: Balanced
| }, | ||
| "devDependencies": { | ||
| "@electron/packager": "^20.3.0", | ||
| "@electron/packager": "^20.3.1", |
Member
Author
There was a problem hiding this comment.
Blocked until this version makes it to CFS. Then we should deploy a test build to make sure everything works as expected.
This branch has not been deployed
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.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
6e088bec1550dce6556e90c2fd609d27598b74c6electron/packagerv20.3.1 addsverbatimSymlinks: !dereferencewhenderefSymlinks: false, and all other copy/packaging steps (script/build.ts,script/copilot.ts,script/package.ts) already preserve symlinks.↓
package-lock.jsonis not yet updated because@electron/[email protected]is not yet available in CFS (ETARGET).↓ Local lint, build, macOS codesigning, and packaged bundle-size verification have not been run yet.
script/build.ts:216setsderefSymlinks: true(introduced in8f5248464c/ #22928) and upstream@electron/packagerv20.3.0 omittedverbatimSymlinksinfs.cp.git-corebinary copies (~495 MiB uncompressed) reported in #23236.Closes #23236
Description
@electron/packagerto^20.3.1, which includes fix: preserve relative symlink targets electron/packager#1964 (released via fix: preserve relative symlink targets electron/packager#1985) settingverbatimSymlinks: !dereferenceso relative symlinks are preserved instead of rewritten to absolute build-machine paths.derefSymlinks: trueback toderefSymlinks: falseinscript/build.ts(originally changed in Bump @electron/packager to 20.3.0 #22928 as a workaround for macOS codesigning failures caused by rewritten symlinks). Without revertingderefSymlinks, bumping@electron/packageralone would still dereference bundledgit-coresymlinks into full binary copies.cpSync(..., { verbatimSymlinks: true })inscript/build.tsandscript/copilot.ts,Assets.caras the onlyextraResource, andditto -ck --keepParentinscript/package.ts) already preserves symlinks.Outstanding gaps (draft)
package-lock.jsonhas not been updated yet because@electron/[email protected](published 2026-11-27) is not yet available in CFS (gh cfs -- npm installreturnedETARGET).npm run lint,npm run build:dev, macOS codesigning, and packaged.appsymlink/size verification have not been run yet and must be completed oncepackage-lock.jsonis updated.Screenshots
N/A (build/packaging change).
Team-authored review
Evidence: Pending — not yet validated at
6e088bec1550dce6556e90c2fd609d27598b74c6.package-lock.jsonupdate,npm run lint,npm run build:dev, macOS codesigning verification, and packagedgit-coresymlink/size inspection are blocked until@electron/[email protected]is available in CFS.Review path:
needs-deep-review.This change updates packaging infrastructure (
@electron/packager) and symlink handling (derefSymlinks: falseinscript/build.ts), which directly affects macOS codesigning, notarization, and distribution integrity. Please review signed/notarized macOS CI artifacts and confirm all bundledgit-coresymlinks remain relative and valid inside the.appbundle before merging. Maintainer: please apply theneeds-deep-reviewlabel if not already applied.Release notes
Notes: [Fixed] macOS application bundle size regression caused by dereferencing bundled Git symlinks