From f5d4fc56f0407c6a8eccf0f47d36fee9982dbdaf Mon Sep 17 00:00:00 2001 From: Max schwenk Date: Tue, 10 Nov 2026 20:59:55 -0500 Subject: [PATCH] fix(scripts): fork install signs with Developer ID when the keychain has it --- docs/operations/development.md | 8 ++++++-- scripts/install-fork-desktop.ts | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/operations/development.md b/docs/operations/development.md index 7e499a887141e..51389e64f77b8 100644 --- a/docs/operations/development.md +++ b/docs/operations/development.md @@ -318,7 +318,8 @@ vp run fork:install ``` This builds the current checkout as `T3 Code (Fork)` with its own bundle id and no update -feed, signs it with an `Apple Development` identity when one is in the keychain, replaces +feed, signs it with a `Developer ID Application` identity from the keychain (or an `Apple +Development` one when that is all there is), replaces `/Applications/T3 Code (Fork).app`, and relaunches it. It reads `~/.t3/userdata` like any installed build. To carry a dev server's data over once, quit that dev app and run: @@ -338,7 +339,10 @@ building from installing. T3 Connect's public identifiers are compiled in, from `.env.example` when the shell and `.env` don't set them; the install refuses a bundle without them unless `--allow-no-connect` is passed, and after relaunching it waits for Connect to report reachable. Ad-hoc signed builds re-prompt for Keychain -and privacy permissions after every install, which an `Apple Development` identity avoids. +and privacy permissions after every install, which a keychain identity avoids. The 1Password app +connects to T3 as a browser only with a Developer ID signature, after adding the app under +1Password Settings → Browser → Add Browser; its extension then unlocks with the app instead of +locking on every restart. ### Prepared server bytecode diff --git a/scripts/install-fork-desktop.ts b/scripts/install-fork-desktop.ts index 89f2cc3b0d15d..f18c301c2d06a 100644 --- a/scripts/install-fork-desktop.ts +++ b/scripts/install-fork-desktop.ts @@ -84,7 +84,10 @@ function resolveSigningIdentity(): string | undefined { if (identityArg === "none") return undefined; if (identityArg) return identityArg; const identities = capture("security", ["find-identity", "-v", "-p", "codesigning"]); - const match = /"(Apple Development: [^"]+)"/.exec(identities); + // Password managers such as 1Password only connect to browsers with a Developer ID signature. + const match = + /"(Developer ID Application: [^"]+)"/.exec(identities) ?? + /"(Apple Development: [^"]+)"/.exec(identities); return match?.[1]; }