Commit e60719b
authored
fix(build): restore Python.framework symlinks before signing (#1260)
* fix(build): restore Python.framework symlinks before signing
PyInstaller copies Python.framework using real files/directories
instead of preserving the standard macOS symlink layout. This causes
codesign to reject the framework with "bundle format is ambiguous",
triggering a fallback path that signs individual binaries without
creating a proper framework bundle signature. Apple's notarization
then rejects all Python.framework binaries with "The signature of
the binary is invalid."
Fix: after copying watchers into the .app bundle, restore the
canonical macOS framework layout using symlinks:
- Versions/Current -> <version>
- Python -> Versions/Current/Python
- Resources -> Versions/Current/Resources
This lets codesign sign the framework as a proper bundle (verified
locally), producing valid bundle signatures that Apple should accept.
* fix: address Greptile review - use glob for version discovery, simplify find
- Replace ls|grep|head with glob loop for version dir discovery (avoids
SIGPIPE and locale issues)
- Use find -iname "Python.framework" instead of -name "*.framework"|grep1 parent c9c256b commit e60719b
1 file changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
48 | 88 | | |
49 | 89 | | |
50 | 90 | | |
| |||
0 commit comments