Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172# Sync SpiderLily Project from Perforce# Uses the existing spiderlily_build_workspace
$ErrorActionPreference = "Stop"
Write-Host "=========================================" -ForegroundColor CyanWrite-Host "Syncing SpiderLily from Perforce" -ForegroundColor CyanWrite-Host "=========================================" -ForegroundColor CyanWrite-Host ""
# Set Perforce environment$env:P4PORT = "ssl:falsework.helixcore.io:1666"$env:P4USER = "machine"$env:P4CLIENT = "spiderlily_build_workspace"
Write-Host "Server: $env:P4PORT" -ForegroundColor CyanWrite-Host "User: $env:P4USER" -ForegroundColor CyanWrite-Host "Workspace: $env:P4CLIENT" -ForegroundColor CyanWrite-Host ""
# Check workspace infoWrite-Host "Workspace details:" -ForegroundColor Yellowp4 client -o $env:P4CLIENT | Select-String "Root:|View:"Write-Host ""
# Ask for confirmation$response = Read-Host "Sync latest revision? This may take a while (y/N)"if ($response -ne "y" -and $response -ne "Y") { Write-Host "Cancelled." -ForegroundColor Yellow exit 0}
Write-Host ""Write-Host "Syncing files..." -ForegroundColor YellowWrite-Host "This may take several minutes depending on project size..." -ForegroundColor GrayWrite-Host ""
# Sync the workspacep4 sync
if ($LASTEXITCODE -ne 0) { Write-Host "" Write-Host "[ERROR] Sync failed!" -ForegroundColor Red Write-Host "Try running: p4 sync -f" -ForegroundColor Yellow exit 1}
Write-Host ""Write-Host "[OK] Sync complete!" -ForegroundColor GreenWrite-Host ""
# Find the project fileWrite-Host "Locating SpiderLily.uproject..." -ForegroundColor Yellow$projectFiles = Get-ChildItem -Path "C:\Perforce" -Filter "SpiderLily.uproject" -Recurse -ErrorAction SilentlyContinue
if ($projectFiles.Count -eq 0) { Write-Host "[WARNING] SpiderLily.uproject not found in C:\Perforce" -ForegroundColor Yellow Write-Host "Check the workspace mapping or project structure." -ForegroundColor Yellow} else { $projectPath = $projectFiles[0].FullName $projectDir = $projectFiles[0].DirectoryName Write-Host "[OK] Found project at: $projectPath" -ForegroundColor Green Write-Host "" Write-Host "Update build-false-work.ps1 with:" -ForegroundColor Cyan Write-Host " `$ProjectRoot = `"$projectDir`"" -ForegroundColor White}
Write-Host ""Write-Host "Next step: Run build-false-work.ps1 to build the project" -ForegroundColor YellowWrite-Host ""