Skip to content

scripts: build, sign and install locally so the Accessibility grant survives a rebuild - #25

Open
andredezzy wants to merge 1 commit into
digimata:masterfrom
andredezzy:contrib/install-local-script
Open

scripts: build, sign and install locally so the Accessibility grant survives a rebuild#25
andredezzy wants to merge 1 commit into
digimata:masterfrom
andredezzy:contrib/install-local-script

Conversation

@andredezzy

Copy link
Copy Markdown

Every rebuild produces a new adhoc signature, and macOS anchors the Accessibility grant to the binary's cdhash. So each swift build followed by a copy into /usr/local/bin costs another trip to System Settings — which is enough friction that you stop testing the hotkey path.

This signs with a self-signed certificate created once in the login keychain, so the designated requirement stays identifier parrot and certificate leaf = H"…" across rebuilds and the grant holds. No admin rights, no Developer ID.

It also boots the LaunchAgent out and back in, so the running daemon is the one you just built.

Split out of the branches I had it buried in; it stands alone and touches one file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant