mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
- patcher.js resolves rom-patcher-js from both the relocated sibling layout (docker/Dockerfile) and the plain node_modules layout (root Dockerfile), so both build flows work without a manual copy - apply_patch wraps the node subprocess in asyncio.wait_for with a timeout and kills it on expiry; a semaphore bounds concurrency, and the endpoint rejects oversized ROM/patch files to avoid OOM - report the patch source-checksum validation result via an X-Patch-Validated header; the patcher UI warns on a mismatch - return a generic "Patching failed" detail to clients and log the real error server-side, so node/RomPatcher.js paths don't leak Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>