mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(electron): sign and notarize mac release builds (#1171)
* feat(electron): sign and notarize mac release builds when Apple credentials are present * fix(electron): work around codesign PID parsing for digit-leading app name in @electron/notarize codesign interprets a bare '5chan.app' argument as process ID 5, so @electron/notarize 2.5.0's pre-upload signature check fails with 'No such process'. Backport the './' basename prefix from electron/notarize#245 as a yarn patch until forge depends on notarize >= 3.x. * docs(agent-playbooks): record codesign PID parsing surprise for digit-leading app name * fix(ci): keep mac signing env consistent with certificate availability
This commit is contained in:
@@ -918,6 +918,16 @@ If uncertain, ask the developer before adding an entry.
|
||||
- **Impact:** Agents can silently inherit invalid or weak model settings, leading to broken subagent runs or degraded implementation quality.
|
||||
- **Mitigation:** Keep `.cursor` agent configs on Cursor-supported models only, never use `composer-2` in `.claude`, and standardize `.codex/agents/*.toml` on `gpt-5.4` unless a contributor explicitly requests an override.
|
||||
- **Status:** confirmed
|
||||
|
||||
### codesign parses "5chan.app" as process ID 5
|
||||
|
||||
- **Date:** 2026-06-12
|
||||
- **Observed by:** contributor + Claude
|
||||
- **Context:** Running the first signed + notarized mac Electron build (`yarn electron:build:mac:arm64` with Apple credentials set)
|
||||
- **What was surprising:** `@electron/notarize` 2.x runs its pre-upload signature check as `codesign -dv 5chan.app` from the bundle's parent directory, and `codesign` accepts a process ID in place of a path — so it parses the digit-leading basename as PID 5 and fails with `5chan.app: No such process` even though the app is signed correctly.
|
||||
- **Impact:** Notarization aborts after a successful signing pass; the error message looks like a signing failure and invites debugging the certificate/keychain instead of the real cause. Any tool that shells out to `codesign` with a bare relative path can hit this because the app is literally named `5chan`.
|
||||
- **Mitigation:** Keep the yarn patch `.yarn/patches/@electron-notarize-npm-2.5.0-*.patch` (backport of electron/notarize#245, prefixes the basename with `./`) until electron-forge depends on `@electron/notarize` >= 3.x. When invoking `codesign` manually on the app bundle, always use an absolute or `./`-prefixed path.
|
||||
- **Status:** confirmed
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user