11# Jarvis Orb — Windows Installer (PowerShell)
22# Usage: irm https://raw.githubusercontent.com/whynowlab/jarvis-orb/main/install.ps1 | iex
33
4- $ErrorActionPreference = " Continue "
5- $Version = " 0.3.1 "
4+ $ErrorActionPreference = " Stop "
5+ $Version = " 0.3.2 "
66$Repo = " whynowlab/jarvis-orb"
77$BrainDir = " $env: USERPROFILE \.jarvis-orb"
88$BrainBin = " $BrainDir \bin"
@@ -28,48 +28,43 @@ function Write-Step($msg) {
2828# ── Header ──
2929Write-Host " "
3030Write-Host " "
31- # Generate logo with oh-my-logo if npx available
32- $hasNpx = Get-Command npx - ErrorAction SilentlyContinue
33- if ($hasNpx ) {
34- npx - y oh- my- logo " JARVIS" -- palette- colors " #4A9EBF,#8EE4FF,#6B4FA0" -- filled -- block-font block - d diagonal -- color 2> $null
35- Write-Host " " - NoNewline
36- Write-Host " ◉ ORB" - ForegroundColor Cyan
37- Write-Host " " - NoNewline
38- Write-Host " AI Brain + Visualizer · v$Version " - ForegroundColor DarkGray
39- } else {
40- Write-Host " J A R V I S" - NoNewline - ForegroundColor Cyan
41- Write-Host " ◉ ORB" - ForegroundColor White
42- Write-Host " AI Brain + Visualizer · v$Version " - ForegroundColor DarkGray
43- }
31+ Write-Host " J A R V I S" - NoNewline - ForegroundColor Cyan
32+ Write-Host " ◉ ORB" - ForegroundColor White
33+ Write-Host " AI Brain + Visualizer · v$Version " - ForegroundColor DarkGray
4434Write-Host " "
4535
4636# ── Step 1: Environment ──
4737Write-Step " Checking environment"
4838Write-Info " Windows $ ( [System.Environment ]::OSVersion.Version) "
4939
5040$hasPython = Get-Command python - ErrorAction SilentlyContinue
51- if ($hasPython ) {
52- Write-Ok " Python found: $ ( python -- version 2>&1 ) "
53- } else {
54- Write-Warn " Python not found — Brain Lite requires Python 3.11+"
41+ if (-not $hasPython ) {
42+ Write-Host " Python not found. Install Python 3.11+ first." - ForegroundColor Red
43+ exit 1
44+ }
45+
46+ $pyVersion = python - c " import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" 2>&1
47+ $pyParts = $pyVersion -split ' \.'
48+ if ([int ]$pyParts [0 ] -lt 3 -or ([int ]$pyParts [0 ] -eq 3 -and [int ]$pyParts [1 ] -lt 11 )) {
49+ Write-Host " Python 3.11+ required (found $pyVersion )." - ForegroundColor Red
50+ exit 1
5551}
52+ Write-Ok " Python $pyVersion "
5653
5754# ── Step 2: Brain Lite ──
5855Write-Step " Installing Brain Lite"
5956
6057New-Item - ItemType Directory - Force - Path $BrainDir | Out-Null
6158New-Item - ItemType Directory - Force - Path $BrainBin | Out-Null
6259
63- if ($hasPython ) {
64- Write-Info " Installing dependencies..."
65- $pipOutput = python - m pip install -- target " $BrainDir \lib" aiosqlite websockets mcp 2>&1
66- if ($LASTEXITCODE -eq 0 ) {
67- Write-Ok " Dependencies installed"
68- } else {
69- Write-Warn " Dependency install failed — check Python/pip"
70- Write-Info ($pipOutput | Out-String )
71- }
60+ Write-Info " Installing dependencies..."
61+ $pipOutput = python - m pip install -- target " $BrainDir \lib" aiosqlite websockets mcp 2>&1
62+ if ($LASTEXITCODE -ne 0 ) {
63+ Write-Host " Dependency install failed. Check your Python/pip setup." - ForegroundColor Red
64+ Write-Info ($pipOutput | Out-String )
65+ exit 1
7266}
67+ Write-Ok " Dependencies installed"
7368
7469# Download Brain source
7570Write-Info " Downloading Brain Lite..."
@@ -165,15 +160,8 @@ try {
165160# ── Done ──
166161Write-Host " "
167162Write-Host " "
168- if ($hasNpx ) {
169- npx - y oh- my- logo " JARVIS" -- palette- colors " #8EE4FF,#B0F0FF,#8EE4FF" -- filled -- block-font block - d diagonal -- color 2> $null
170- Write-Host " " - NoNewline
171- Write-Host " ◉ ORB" - NoNewline - ForegroundColor Green
172- Write-Host " ONLINE" - ForegroundColor Green
173- } else {
174- Write-Host " J A R V I S" - NoNewline - ForegroundColor Green
175- Write-Host " ◉ ORB ONLINE" - ForegroundColor Green
176- }
163+ Write-Host " J A R V I S" - NoNewline - ForegroundColor Green
164+ Write-Host " ◉ ORB" - ForegroundColor Green
177165Write-Host " "
178166Write-Host " I N S T A L L E D" - ForegroundColor Green
179167Write-Host " "
0 commit comments