Fix receiver preload path on Windows
Some checks failed
Build / release (macos-latest) (push) Has been cancelled
Build / release (ubuntu-latest) (push) Has been cancelled
Build / release (windows-latest) (push) Has been cancelled
Windows Smoke Test / windows-smoke (push) Has been cancelled

This commit is contained in:
2026-05-06 05:13:48 +09:00
parent 555a5ea099
commit 435fa89517

View File

@@ -692,9 +692,11 @@ async function dlAsync(login = true) {
DistroAPI.isDevMode() DistroAPI.isDevMode()
) )
const receiverPatchPath = path.join(__dirname, '..', 'vanillapatch.js') const receiverPatchPath = path
.resolve(__dirname, '..', 'vanillapatch.js')
.replace(/\\/g, '/')
const existingNodeOptions = process.env.NODE_OPTIONS?.trim() const existingNodeOptions = process.env.NODE_OPTIONS?.trim()
const receiverNodeOptions = `--require=\"${receiverPatchPath}\"` const receiverNodeOptions = `--require=${receiverPatchPath}`
fullRepairModule.spawnReceiver({ fullRepairModule.spawnReceiver({
NODE_OPTIONS: existingNodeOptions != null && existingNodeOptions.length > 0 NODE_OPTIONS: existingNodeOptions != null && existingNodeOptions.length > 0