Fix receiver preload path on Windows
This commit is contained in:
@@ -692,9 +692,11 @@ async function dlAsync(login = true) {
|
||||
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 receiverNodeOptions = `--require=\"${receiverPatchPath}\"`
|
||||
const receiverNodeOptions = `--require=${receiverPatchPath}`
|
||||
|
||||
fullRepairModule.spawnReceiver({
|
||||
NODE_OPTIONS: existingNodeOptions != null && existingNodeOptions.length > 0
|
||||
|
||||
Reference in New Issue
Block a user