Skip to content

Commit 84a15d6

Browse files
committed
Use neutral macOS CLI identifier
1 parent f22d989 commit 84a15d6

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

AGENTS.md

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

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ members = [
1313
resolver = "2"
1414

1515
[workspace.package]
16-
version = "0.1.20"
16+
version = "0.1.21"
1717
edition = "2024"
1818
license = "MIT"
1919
repository = "https://github.com/Pyiner/garyx"

garyx/src/commands.rs

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

103103
#[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.bytedance.garyx",
1170+
"com.garyx.cli",
11711171
"/tmp/garyx"
11721172
]
11731173
);

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ verify_checksum() {
131131

132132
codesign_macos_cli() {
133133
local binary="$1"
134-
local identifier="com.bytedance.garyx"
134+
local identifier="com.garyx.cli"
135135

136136
if [ "$(uname -s)" != "Darwin" ]; then
137137
return 0

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.bytedance.garyx"
17+
identifier="com.garyx.cli"
1818

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

0 commit comments

Comments
 (0)