Commit a41abfb
authored
fix(build): replace codesign --deep with inside-out per-binary signing for notarization (#1246)
* fix(build): replace codesign --deep with inside-out per-binary signing
codesign --deep fails to reliably sign all nested Mach-O binaries in
PyInstaller-built watcher bundles (aw-watcher-window/input/afk each
embed hundreds of .dylib/.so files and Python.framework with symlinks).
Apple's notarization log showed 502 rejections:
- 248 missing secure timestamps
- 239 binaries not signed with valid Developer ID certificate
- 9 invalid signatures (Python.framework symlink issue)
Fix: sign every Mach-O binary individually using `file | grep Mach-O`,
working inside-out (leaves → .framework bundles → top-level .app), with
--timestamp on every codesign call as required by notarization.
Also add --timestamp to the DMG codesign step in both build.yml and
build-tauri.yml, which was also missing.
Reported in ErikBjare/bob#546 via xcrun notarytool log analysis.
* fix(build): address Greptile P2 suggestions — xargs batching and bundle type coverage
- Batch Mach-O file detection with `xargs file` (O(1) subprocess calls vs O(n))
for large PyInstaller bundles with hundreds of dylib/so files
- Extend bundle signing step to cover .bundle and .plugin directories in addition
to .framework, preventing missing CodeResources catalog seals that can trigger
notarytool bundle-integrity warnings1 parent 6211ad5 commit a41abfb
3 files changed
Lines changed: 47 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
103 | 143 | | |
104 | 144 | | |
105 | 145 | | |
| |||
0 commit comments