# Pane installer for Windows - https://runpane.com # Usage: irm https://runpane.com/install.ps1 | iex # # This script downloads Pane via runpane.com, which logs anonymous install # metrics (OS, architecture, version) - the same fields HTTP already exposes. # No usernames, hostnames, or other PII collected. # Read this script first: irm https://runpane.com/install.ps1 # Skip logging - install directly from: # https://github.com/greenfield-inc/Pane/releases/latest $repo = "greenfield-inc/Pane" $binaryName = "Pane" Write-Host "" Write-Host " Pane - Run any agent. Any OS. Ship faster." Write-Host " https://runpane.com" Write-Host "" $paneRef = "" $refParam = "" if ($paneRef) { $paneDir = Join-Path $env:USERPROFILE ".pane" New-Item -ItemType Directory -Force -Path $paneDir | Out-Null Set-Content -Path (Join-Path $paneDir "attribution_ref") -Value $paneRef $refParam = "&ref=$paneRef" } try { $release = Invoke-RestMethod "https://api.github.com/repos/$repo/releases/latest" $version = $release.tag_name -replace '^v', '' } catch { Write-Host " Error: Could not determine latest version." Write-Host " Download manually: https://github.com/$repo/releases/latest" exit 1 } Write-Host " Version: $version" Write-Host "" $arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "x64" } $filename = "$binaryName-$version-Windows-$arch.exe" $url = "https://runpane.com/api/download?platform=windows&arch=$arch&v=$version&file=$filename&source=install-script$refParam" $dest = Join-Path $env:USERPROFILE "Downloads\$filename" Write-Host " Downloading $filename..." Invoke-WebRequest -Uri $url -OutFile $dest -UseBasicParsing Write-Host "" Write-Host " Downloaded to: $dest" Write-Host " Launching installer..." Start-Process $dest Write-Host "" Write-Host " Questions? https://runpane.com" Write-Host " Discord: https://discord.gg/BdMyubeAZn" Write-Host ""