<# install.ps1 — first-time bootstrap for the Eve watchers (Goliath + Adam's PC). One-liner (PowerShell): irm https://git.armoredarmadillo.com/brockdarnold/eve-watcher/raw/branch/main/install.ps1 | iex This is now just a thin bootstrap: it git-clones the watcher repo into %USERPROFILE%\eve-watcher (or pulls if already there) and runs update.py. After this, the ONLY command you ever need to update is: cd ~\eve-watcher ; python update.py Your config.ini (webhook + OCR snip) is gitignored, so updates never touch it. #> $ErrorActionPreference = "Stop" $repo = "https://git.armoredarmadillo.com/brockdarnold/eve-watcher.git" $dir = Join-Path $env:USERPROFILE "eve-watcher" function Need($cmd, $hint) { if (-not (Get-Command $cmd -ErrorAction SilentlyContinue)) { Write-Warning "$cmd not found. $hint" exit 1 } } Need git "Install it: winget install --id Git.Git -e" Need python "Install Python 3 from https://www.python.org (check 'Add to PATH'), then re-run." if (Test-Path (Join-Path $dir ".git")) { Write-Host "eve-watcher already cloned at $dir — pulling latest." git -C $dir pull --ff-only } else { Write-Host "Cloning eve-watcher into $dir ..." git clone $repo $dir } Set-Location $dir python update.py Write-Host "" Write-Host "Installed at $dir." Write-Host "From now on, update with: cd $dir ; python update.py" Write-Host "One-time (per PC) for OCR: python eve_orehold_watcher.py --snip"