Skip to content

Fix Windows overlay donor build and allow overlay rebuild for a release tag - #710

Merged
Zaldaryon merged 2 commits into
mainfrom
fix/overlay-windows-donor-api-order
Nov 20, 2026
Merged

Zaldaryon merged 2 commits into
mainfrom
fix/overlay-windows-donor-api-order

Conversation

@Zaldaryon

Copy link
Copy Markdown
Collaborator

The Release RiftLauncher overlays run for v0.4.1 (44775814883) failed in Build win-x64 overlay, so the release has no overlay assets. The run for v0.4.0 failed too, for the InlineArray reason fixed in #701.

The v0.4.1 failure is in scripts/prepare-runtime-donors.ps1: the VSSurvivalMod donor build reported ColorUtil.GetIncandescenceColorFloats and ICoreClientAPI.IsTesselationThread as missing. Resolve-ProjectReferences probed runtime-donors/Lib, runtime-donors/ and runtime-donors/Mods before bin/Release/net10.0. The vanilla snapshot contains an unpatched VintagestoryAPI.dll, so it replaced the patched reference that Set-ReferenceHintPath had just set. prepare-runtime-donors.sh already probes the build output first, which is why the Linux overlay passed. The bug stayed hidden until runtime patches started using Optimum-only API members.

Changes:

  • prepare-runtime-donors.ps1 probes $outputRoot first, matching the bash script.
  • RuntimeDonorReferenceResolutionPrefersPatchedBuildOutput asserts that order in both scripts.
  • release-overlay.yml gains workflow_dispatch with a tag input, so overlays can be built and attached for an existing release without moving its tag. The tag still has to match VERSION. The release trigger behaves as before.

No PR check runs prepare-runtime-donors.ps1 on Windows, so CI here cannot confirm the fix. After merge I will dispatch the workflow for v0.4.1 and verify the Windows job and the uploaded assets. I checked that the new test logic passes on the fixed script and fails on the old one, but did not run Optimum.Tests locally.

…or build

The Windows donor script searched the vanilla donor snapshot before bin/Release,
so Resolve-ProjectReferences replaced the patched VintagestoryAPI.dll hint with
the unpatched one and VSSurvivalMod failed to compile in the v0.4.1 overlay run.
Match the bash script's order and add a regression test.
Add workflow_dispatch with a tag input so overlays missing from a published
release can be built and attached without moving the tag.
@Zaldaryon
Zaldaryon marked this pull request as ready for review November 20, 2026 16:59
@Zaldaryon
Zaldaryon merged commit 1cc5de6 into main Nov 20, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant