mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 21:30:17 +08:00
feat(settings): prioritize native install path for Claude Code detection
- Move ~/.local/bin to first position in version scan search paths - Update one-click install commands to use official native installation (curl script) instead of npm for Claude Code
This commit is contained in:
@@ -32,8 +32,11 @@ interface ToolVersion {
|
||||
error: string | null;
|
||||
}
|
||||
|
||||
const ONE_CLICK_INSTALL_COMMANDS = `npm i -g @anthropic-ai/claude-code@latest
|
||||
const ONE_CLICK_INSTALL_COMMANDS = `# Claude Code (Native install - recommended)
|
||||
curl -fsSL https://claude.ai/install.sh | bash
|
||||
# Codex
|
||||
npm i -g @openai/codex@latest
|
||||
# Gemini CLI
|
||||
npm i -g @google/gemini-cli@latest`;
|
||||
|
||||
export function AboutSection({ isPortable }: AboutSectionProps) {
|
||||
|
||||
Reference in New Issue
Block a user