mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-15 05:40:47 +08:00
fix: enable shell option for child_process.spawn on Windows (#7619)
* fix: enable shell option for Windows in runDevCommand * fix: enable shell option for Windows in runDevAnchor
This commit is contained in:
@@ -191,6 +191,7 @@ export async function runDevAnchor(mode, dependencies = {}) {
|
||||
let inner
|
||||
try {
|
||||
inner = spawnChild(invocation.command, invocation.args, {
|
||||
shell: platform === 'win32',
|
||||
env: invocation.env,
|
||||
detached: false,
|
||||
stdio: 'inherit',
|
||||
@@ -336,6 +337,7 @@ export async function runDevCommand(mode, dependencies = {}) {
|
||||
let child
|
||||
try {
|
||||
child = spawnChild(invocation.command, invocation.args, {
|
||||
shell: platform === 'win32',
|
||||
env: invocation.env,
|
||||
detached: invocation.detached,
|
||||
stdio:
|
||||
|
||||
Reference in New Issue
Block a user