Files
unlimitedcoding/uclaude_update.ps1
delta-cloud-208e eb8d26a991 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>
2026-02-21 11:38:48 +00:00

21 lines
801 B
PowerShell

# 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