From 585abb8ab82fb790bc7febd3de9db4fa2dbd8bec Mon Sep 17 00:00:00 2001 From: chenhg5 Date: Sat, 28 Feb 2026 16:43:49 +0800 Subject: [PATCH] fix(install): update GITEE repo and handle macOS quarantine Update GITEE repository path and add macOS quarantine attribute removal for darwin platform binaries. generated by llmgit Co-Authored-By: Claude --- npm/install.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/npm/install.js b/npm/install.js index f3753d0..af82db4 100644 --- a/npm/install.js +++ b/npm/install.js @@ -14,7 +14,7 @@ const VERSION = `v${PACKAGE.version}`; const NAME = "cc-connect"; const GITHUB_REPO = "chenhg5/cc-connect"; -const GITEE_REPO = "chenhg5/cc-connect"; +const GITEE_REPO = "cg33/cc-connect"; const PLATFORM_MAP = { darwin: "darwin", @@ -150,6 +150,15 @@ async function main() { fs.chmodSync(binaryPath, 0o755); } + if (platform === "darwin") { + try { + execSync(`xattr -d com.apple.quarantine "${binaryPath}"`, { stdio: "pipe" }); + console.log(`[cc-connect] Removed macOS quarantine attribute`); + } catch { + // xattr fails if the attribute doesn't exist, which is fine + } + } + console.log(`[cc-connect] Installed to ${binaryPath}`); }