Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445# Clean intermediate build files to fix file locking issues# Run as Administrator
#Requires -RunAsAdministrator
Write-Host "=========================================" -ForegroundColor CyanWrite-Host "Cleaning Intermediate Build Files" -ForegroundColor CyanWrite-Host "=========================================" -ForegroundColor CyanWrite-Host ""
$ProjectRoot = "C:\Perforce\SpiderLily\SL_main"
# Stop any UE5 processes that might be locking filesWrite-Host "Stopping Unreal Engine processes..." -ForegroundColor YellowGet-Process | Where-Object {$_.ProcessName -like "*Unreal*"} | Stop-Process -Force -ErrorAction SilentlyContinueGet-Process | Where-Object {$_.ProcessName -like "*UE5*"} | Stop-Process -Force -ErrorAction SilentlyContinueStart-Sleep -Seconds 2
# Clean intermediate directories$IntermediateDirs = @( "$ProjectRoot\Intermediate", "$ProjectRoot\Plugins\FMODStudio\Intermediate", "$ProjectRoot\Plugins\FMODStudioNiagara\Intermediate")
foreach ($dir in $IntermediateDirs) { if (Test-Path $dir) { Write-Host "Deleting: $dir" -ForegroundColor Gray Remove-Item -Path $dir -Recurse -Force -ErrorAction SilentlyContinue if (Test-Path $dir) { Write-Host "[WARNING] Could not fully delete: $dir" -ForegroundColor Yellow } else { Write-Host "[OK] Deleted: $dir" -ForegroundColor Green } }}
Write-Host ""Write-Host "[OK] Clean complete!" -ForegroundColor GreenWrite-Host ""Write-Host "Next: Try building again" -ForegroundColor CyanWrite-Host " powershell.exe -ExecutionPolicy Bypass -File ""\\wsl.localhost\Ubuntu\home\me\aesthetic-computer\windows\build-false-work.ps1""" -ForegroundColor GrayWrite-Host ""