Commit f156bb1
committed
Fix(release): macOS signing survives electron-builder's keychain password bug
The macOS release job died inside code signing: electron-builder creates
a temporary keychain with a random password, then runs `security
set-key-partition-list -k` with the certificate's import password
instead. Older macOS let that slide on an already-unlocked keychain, and
2.43.0 signed fine two days ago on the same electron-builder 26.15.7; the
macOS 26.6 runner image now verifies the password and refuses
("SecKeychainUnlock: The user name or passphrase you entered is not
correct"). Upstream fixed it in electron-builder #10101 (issue #10066),
but the fix is missing from 26.16.0 and the v26 backport is unreleased.
Until a release carries it, the macOS job applies the same two-line
change to the installed app-builder-lib through a small script. The
script is idempotent, becomes a no-op once the installed copy has the
fix, and fails loudly if the file stops looking like either version so
it gets dropped rather than silently skipped. Local builds are untouched:
they sign from the login keychain and never enter this code path.
Claude-Session: https://claude.ai/code/session_015HNdWonTE8g6dPY2SkdsRS1 parent e56f9ec commit f156bb1
2 files changed
Lines changed: 75 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments