Skip to content

Commit 6251462

Browse files
committed
Use gateway identifier for macOS CLI signing
1 parent d1882cd commit 6251462

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ needs installed-app validation.
108108
- On macOS, do not treat a matching hash as sufficient after copying a locally
109109
built `garyx` binary into a launchd-managed path such as
110110
`/opt/homebrew/bin/garyx`. Clear removable target-file xattrs, ad-hoc re-sign
111-
the installed file with the stable identifier `com.garyx.cli` (or use
111+
the installed file with the stable identifier `com.garyx.gateway` (or use
112112
`bash scripts/codesign-macos-cli.sh <path-to-garyx>`), and verify it executes
113113
before restarting, otherwise launchd/AMFI may kill it with
114114
`OS_REASON_CODESIGNING`. `com.apple.provenance` can be inherited or protected

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ needs installed-app validation.
108108
- On macOS, do not treat a matching hash as sufficient after copying a locally
109109
built `garyx` binary into a launchd-managed path such as
110110
`/opt/homebrew/bin/garyx`. Clear removable target-file xattrs, ad-hoc re-sign
111-
the installed file with the stable identifier `com.garyx.cli` (or use
111+
the installed file with the stable identifier `com.garyx.gateway` (or use
112112
`bash scripts/codesign-macos-cli.sh <path-to-garyx>`), and verify it executes
113113
before restarting, otherwise launchd/AMFI may kill it with
114114
`OS_REASON_CODESIGNING`. `com.apple.provenance` can be inherited or protected

garyx/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const CLAUDE_OAUTH_ENV: &str = "CLAUDE_CODE_OAUTH_TOKEN";
9898
const CODEX_API_KEY_ENV: &str = "OPENAI_API_KEY";
9999
const GITHUB_RELEASE_REPO: &str = "Pyiner/garyx";
100100
#[cfg(any(target_os = "macos", test))]
101-
const MACOS_CLI_CODESIGN_IDENTIFIER: &str = "com.garyx.cli";
101+
const MACOS_CLI_CODESIGN_IDENTIFIER: &str = "com.garyx.gateway";
102102
const DEFAULT_CHANNEL_AGENT_ID: &str = "claude";
103103

104104
#[derive(Debug, Deserialize)]

garyx/src/commands/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ fn macos_cli_codesign_args_use_stable_identifier() {
11671167
"--sign",
11681168
"-",
11691169
"--identifier",
1170-
"com.garyx.cli",
1170+
"com.garyx.gateway",
11711171
"/tmp/garyx"
11721172
]
11731173
);

scripts/codesign-macos-cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [[ $# -ne 1 ]]; then
1414
fi
1515

1616
binary="$1"
17-
identifier="com.garyx.cli"
17+
identifier="com.garyx.gateway"
1818

1919
if [[ ! -f "$binary" ]]; then
2020
echo "Error: binary does not exist: $binary" >&2

0 commit comments

Comments
 (0)