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 <noreply@anthropic.com>
This commit is contained in:
chenhg5andClaude committed 2026-02-28 16:44:41 +08:00
1 parent c24db65243
commit 585abb8ab8
1 file changed
+10 -1
+10 -1
View File
@@ -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}`);
}