$baseUrl = "http://62.238.2.22:8787" $stellaDir = "$env:USERPROFILE\Stella" $binDir = "$env:USERPROFILE\.bun\bin" Write-Host "" Write-Host " Installing Stella..." -ForegroundColor Cyan Write-Host "" # Create dirs New-Item -ItemType Directory -Path $stellaDir -Force | Out-Null New-Item -ItemType Directory -Path $binDir -Force | Out-Null # Download Write-Host " [1/3] Downloading..." -ForegroundColor Cyan $zip = "$env:TEMP\stella.zip" [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Invoke-WebRequest -Uri "$baseUrl/stella.zip" -OutFile $zip -UseBasicParsing Write-Host " Done" -ForegroundColor Green # Extract Write-Host " [2/3] Extracting..." -ForegroundColor Cyan Expand-Archive -Path $zip -DestinationPath $stellaDir -Force Remove-Item $zip -Force Write-Host " Done" -ForegroundColor Green # Create launcher Write-Host " [3/3] Setting up..." -ForegroundColor Cyan $launcher = "$binDir\stella.cmd" @" @echo off set STELLA_SKIP_ONBOARDING= "$stellaDir\stella.exe" %* "@ | Out-File -FilePath $launcher -Encoding ASCII # Update PATH (current session + user) $userPath = [Environment]::GetEnvironmentVariable("Path", "User") if ($userPath -notlike "*$binDir*") { [Environment]::SetEnvironmentVariable("Path", "$userPath;$binDir", "User") } $env:Path = "$env:Path;$binDir" Write-Host " Done" -ForegroundColor Green Write-Host "" Write-Host " Installed! Run: stella" -ForegroundColor Green Write-Host ""