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:
20
uclaude_update.ps1
Normal file
20
uclaude_update.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
# UClaude Updater — automatic Claude Code patch updater
|
||||
# Usage: powershell -ExecutionPolicy Bypass -File uclaude_update.ps1 [--check] [--force] [--settings-only]
|
||||
|
||||
$ErrorActionPreference = "Continue"
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
Set-Location $ScriptDir
|
||||
|
||||
# Pull latest artifacts
|
||||
git pull --quiet 2>$null
|
||||
|
||||
# Check admin
|
||||
$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
|
||||
if (-not $isAdmin) {
|
||||
Write-Host "Re-running as Administrator..." -ForegroundColor Yellow
|
||||
Start-Process powershell -ArgumentList "-ExecutionPolicy Bypass -File `"$($MyInvocation.MyCommand.Path)`" $args" -Verb RunAs
|
||||
exit
|
||||
}
|
||||
|
||||
# Run updater
|
||||
& python uclaude_updater.py @args
|
||||
Reference in New Issue
Block a user