param( [string]$DriveRoot = (Resolve-Path "$PSScriptRoot\..\..").Path, [string]$BrandName = "JackAILocal", [switch]$SkipModels, [switch]$SkipBackends, [switch]$SkipRust ) $ErrorActionPreference = 'Stop' Set-Location $DriveRoot if (!$SkipRust) { & "$DriveRoot\factory\powershell\Build-RustBinaries.ps1" -DriveRoot $DriveRoot } if (!$SkipBackends) { & "$DriveRoot\factory\powershell\Install-Backends.ps1" -DriveRoot $DriveRoot } if (!$SkipModels) { & "$DriveRoot\factory\powershell\Install-Models.ps1" -DriveRoot $DriveRoot } & "$DriveRoot\factory\powershell\Apply-Branding.ps1" -DriveRoot $DriveRoot -BrandName $BrandName & "$DriveRoot\factory\powershell\Generate-Manifest.ps1" -DriveRoot $DriveRoot & "$DriveRoot\windows\Preflight-Windows.ps1" Write-Host "Ready for Windows portable QA. Run factory\powershell\QA-Benchmark.ps1 next."