From a23cb6a534cfb72f76fb53d0ed8618ac045b94db Mon Sep 17 00:00:00 2001 From: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com> Date: Mon, 16 Nov 2026 03:03:32 -0500 Subject: [PATCH] BUILDING: copy the runtime's build manifest into the payload clean/runner/build.py writes wronggpu_runtime.build.json next to the runtime library, and the payload packager refuses a runtime library without it (or one whose SHA-256 does not match it). The payload step now copies the manifest with the library and says why; the manifest is read for that check and not shipped. Signed-off-by: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com> --- BUILDING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index cb9aad0e..944c20c8 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -99,6 +99,7 @@ The launcher embeds two folders: out\payload\amd_fidelityfx_dx12.dll from out\frontend out\payload\plugins\WrongGPU.asi from out\frontend out\payload\wronggpu_runtime.dll from out\runtime +out\payload\wronggpu_runtime.build.json from out\runtime (read by the packager, not shipped) out\payload\wronggpu-license.txt LICENSE (the MIT licence; official builds ship it as their licence) out\payload\wronggpu-notices.txt clean\fsr\NOTICES.txt out\rr\plugins\WrongGPU-RR.asi from out\rr-proxy\hook @@ -110,12 +111,18 @@ mkdir out\payload\plugins out\rr\plugins copy /y out\frontend\amd_fidelityfx_dx12.dll out\payload\ copy /y out\frontend\WrongGPU.asi out\payload\plugins\ copy /y out\runtime\wronggpu_runtime.dll out\payload\ +copy /y out\runtime\wronggpu_runtime.build.json out\payload\ copy /y LICENSE out\payload\wronggpu-license.txt copy /y clean\fsr\NOTICES.txt out\payload\wronggpu-notices.txt copy /y out\rr-proxy\hook\WrongGPU-RR.asi out\rr\plugins\ copy /y clean\rr_f\proxy\binding\interposer.json out\rr\ ``` +`wronggpu_runtime.build.json` is the build manifest that `clean\runner\build.py` writes next to the runtime library. +The payload packager (`clean\installer\tools\make_payload.py`) refuses a runtime library without it, or one whose +SHA-256 does not match it, so keep the two together and do not change the library after the build (no signing or +stripping). The manifest is read for that check and is not shipped. + For tests, build the HIP runtime stand-in and point `WRONGGPU_HIP_RUNTIME` at it, so no test loads the real HIP runtime: