diff --git a/RenderWorker/VFXReviewWorker/VFXReviewWorker.csproj b/RenderWorker/VFXReviewWorker/VFXReviewWorker.csproj index 6700b02..22db3e5 100644 --- a/RenderWorker/VFXReviewWorker/VFXReviewWorker.csproj +++ b/RenderWorker/VFXReviewWorker/VFXReviewWorker.csproj @@ -28,9 +28,16 @@ - + PreserveNewest + Always diff --git a/RenderWorker/VFXReviewWorker_20260813.zip b/RenderWorker/VFXReviewWorker_20260813.zip new file mode 100644 index 0000000..9fe5f07 Binary files /dev/null and b/RenderWorker/VFXReviewWorker_20260813.zip differ diff --git a/RenderWorker/scripts/publish.ps1 b/RenderWorker/scripts/publish.ps1 index 43fdfca..2adc13c 100644 --- a/RenderWorker/scripts/publish.ps1 +++ b/RenderWorker/scripts/publish.ps1 @@ -38,8 +38,16 @@ if ($sha) { $publishArgs += "-p:SourceRevisionId=$sha" } & dotnet publish @publishArgs if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed" } -# The exe reads scripts\vfxr_build_preview.jsx from its own folder at runtime. +# The exe reads scripts\vfxr_build_preview.jsx from its own folder at runtime, +# so it is copied here unconditionally rather than trusted to the SDK: an +# incremental publish into a cleaned output directory silently skips content +# copying, which produced a package that looked fine and could not build a +# preview. Copy, then verify. +$scriptSrc = Join-Path $PSScriptRoot "vfxr_build_preview.jsx" $scriptOut = Join-Path $OutDir "scripts\vfxr_build_preview.jsx" +if (-not (Test-Path $scriptSrc)) { throw "Preview build script not found in source: $scriptSrc" } +New-Item -ItemType Directory -Force (Split-Path $scriptOut) | Out-Null +Copy-Item $scriptSrc $scriptOut -Force if (-not (Test-Path $scriptOut)) { throw "Preview build script missing from output: $scriptOut" } Remove-Item (Join-Path $OutDir "*.pdb") -ErrorAction SilentlyContinue