feat: uclaude_install.sh — one-line installer с sparse checkout
- uclaude_install.sh: clone --depth 1 --no-checkout + sparse-checkout (только latest cli.js) - uclaude_update.sh: обновляет sparse-checkout при смене версии - README: инструкция с curl one-liner и ручным sparse clone Клиент скачивает ~12MB (одна версия cli.js), а не все версии. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
20
README.md
20
README.md
@@ -10,15 +10,19 @@ Patched Claude Code CLI for use with custom API endpoints. Automatic updater inc
|
||||
# 1. Install Claude Code (if not installed)
|
||||
npm install -g @anthropic-ai/claude-code
|
||||
|
||||
# 2. Clone this repo (shallow clone — only latest commit, ~12MB)
|
||||
git clone --depth 1 https://git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
# 2. Clone and install (one command — downloads only latest version)
|
||||
bash <(curl -s https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/uclaude_install.sh)
|
||||
|
||||
# Or manually:
|
||||
git clone --depth 1 --no-checkout https://git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
cd unlimitedcoding
|
||||
|
||||
# Note: The updater automatically configures sparse checkout to download
|
||||
# only the latest release, not all historical versions.
|
||||
|
||||
# 3. Run updater (installs patched cli.js + configures settings)
|
||||
sudo bash uclaude_update.sh
|
||||
git sparse-checkout set '/*' 'claude/releases/index.json'
|
||||
git checkout
|
||||
# Read latest version from index, then checkout only that version:
|
||||
VER=$(python3 -c "import json; print(json.load(open('claude/releases/index.json'))['latest'])")
|
||||
git sparse-checkout add "claude/releases/v${VER}"
|
||||
git checkout
|
||||
sudo python3 uclaude_updater.py --force
|
||||
```
|
||||
|
||||
### Update
|
||||
|
||||
Reference in New Issue
Block a user