# Cleanroom & RCEdit Studio Windows PowerShell Installer (Windows 11 x64 & ARM64) # Usage: irm https://cleanroom.openie.dev/install.ps1 | iex $ErrorActionPreference = "Stop" $Version = if ($env:CLEANROOM_VERSION) { $env:CLEANROOM_VERSION } else { "0.5.0" } $InstallDir = if ($env:CLEANROOM_INSTALL_DIR) { $env:CLEANROOM_INSTALL_DIR } else { Join-Path $HOME ".cleanroom\bin" } $Arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "x86_64" } $BaseUrl = if ($env:CLEANROOM_RELEASE_BASE) { $env:CLEANROOM_RELEASE_BASE } else { "https://cleanroom.openie.dev/releases/v$Version" } New-Item -ItemType Directory -Force -Path $InstallDir | Out-Null Write-Host "Cleanroom & RCEdit Studio v$Version (windows-$Arch)" Write-Host "Target directory: $InstallDir" if ((Get-Command cargo -ErrorAction SilentlyContinue) -and (Test-Path ".\Cargo.toml")) { Write-Host "Building sovereign binaries from local workspace..." cargo build --release -p rcecli -p rcebrowser -p rcedit foreach ($bin in @("rcecli.exe", "rcebrowser.exe", "rcedit.exe")) { $src = Join-Path ".\target\release" $bin if (Test-Path $src) { Copy-Item $src (Join-Path $InstallDir $bin) -Force } } } else { $Archive = "cleanroom-v$Version-windows-$Arch.zip" $TmpZip = Join-Path $env:TEMP $Archive Write-Host "Fetching verified archive $BaseUrl/$Archive..." Invoke-WebRequest -Uri "$BaseUrl/$Archive" -OutFile $TmpZip -UseBasicParsing Expand-Archive -Path $TmpZip -DestinationPath $InstallDir -Force Remove-Item $TmpZip -Force -ErrorAction SilentlyContinue } $UserPath = [Environment]::GetEnvironmentVariable("Path", "User") if ($UserPath -notlike "*$InstallDir*") { [Environment]::SetEnvironmentVariable("Path", "$InstallDir;$UserPath", "User") } Write-Host "" Write-Host "Installed Cleanroom CLI (rcecli.exe) and RCEdit Studio into $InstallDir." Write-Host "Start full-screen Studio locally: rcecli serve --host 127.0.0.1 --port 7780" Write-Host "Or open instant zero-install Browser Studio: https://cleanroom.openie.dev/workbench/"