-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Respect unpack minimatch for symlinks within previously unpacked directories #341
base: main
Are you sure you want to change the base?
Conversation
… previously unpacked directories. This directly fixes unpacking static `.framework` modules on Mac, as otherwise codesigning will fail due to symlink files/directories not being reflected in the app.asar.unpacked directory. Added unit test with Hello.framework, generated from tutorial https://jano.dev/apple/mach-o/2024/06/28/Hello-Static-Framework.html Fixes: electron-userland/electron-builder#8655
b98871b
to
888ef4f
Compare
I encountered this problem before when reviewing #308. Creating symlinks on Windows and uploading them to GitHub will cause CI to fail. I also tried creating symlinks in git bash, but it still didn't work. Perhaps Windows symlinks and Unix symlinks are completely incompatible? I'm not sure. The method I used is to create them dynamically during testing, rather than using a fixtures-like solution. See: Lines 16 to 30 in 044fb5f
|
Thanks @BlackHole1 ! I'll get working right on that. |
… (same approach as has been taken for filesystem UT already)
82ff252
to
5f886a8
Compare
Summary:
Fixes issue with unpack configuration when considering symlinks within previously unpacked directories. This directly fixes unpacking static
.framework
modules on Mac, as otherwise codesigning will fail due to symlink files/directories not being reflected in the app.asar.unpacked directory.Fix:
unpacked
flag asnode.unpacked=true
symlink
andreadlink
mklink
do not get committed properly to git)Details:
.framework
has to have all symlinks reproduced in the unpacked directory for signing. The top is with electron/asar unpacked folder, the bottom is the actual framework contents.Without this PR, codesigning will fail with
QtCore.framework: bundle format unrecognized, invalid, or unsuitable
Fixes: electron-userland/electron-builder#8655 (comment)