feat: uclaude_updater — automatic client updater
- uclaude_updater.py — auto-detect version, install cli.js, patch settings - uclaude_update.sh/bat/ps1 — platform wrappers (git pull + run updater) - patcher.config.json — shared API config - Updated README with full usage instructions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
18
uclaude_update.sh
Executable file
18
uclaude_update.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# UClaude Updater — automatic Claude Code patch updater
|
||||
# Usage: sudo bash uclaude_update.sh [--check] [--force] [--settings-only]
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
# Pull latest artifacts
|
||||
git pull --quiet 2>/dev/null || true
|
||||
|
||||
# Run updater
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
python3 uclaude_updater.py "$@"
|
||||
else
|
||||
echo "Root privileges required. Re-running with sudo..."
|
||||
sudo python3 uclaude_updater.py "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user