Commit b4e128c
committed
feat(install): re-sign with stable cert → TCC permissions persist
Adhoc-signed bundles use the Mach-O hash as the signing identity, so
every rebuild looks like a brand-new app to macOS TCC. Files-and-Folders
and Full Disk Access prompts return on every install, and once-granted
permissions reset.
install.hexa now re-signs the built bundle with a stable keychain
identity (Developer ID Application preferred, falls back to Apple
Development) before copying to /Applications. TCC keys to the cert
chain + TeamID instead of the binary hash, so granted permissions
carry across rebuilds.
Falls back silently to ad-hoc + a one-time hint if no signing identity
is found, so fresh-clone installs still succeed. Override via
VOID_SIGN_IDENTITY=<sha1> or VOID_SIGN_SKIP=1.1 parent 27c80f9 commit b4e128c
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 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 | + | |
89 | 131 | | |
90 | 132 | | |
91 | 133 | | |
| |||
0 commit comments