From 74715c0546b6cf1534e686aa7486002d2af1ccf7 Mon Sep 17 00:00:00 2001 From: claude-bot Date: Sun, 3 May 2026 17:25:16 +0900 Subject: [PATCH] Fix Docker path quoting and VSCode terminal env --- .vscode/settings.json | 5 +++++ src/services/melo-tts.ts | 2 +- src/setup-tts.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cc4e5e3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "terminal.integrated.env.windows": { + "PATH": "${env:PATH};C:\\Program Files\\Docker\\Docker\\resources\\bin" + } +} diff --git a/src/services/melo-tts.ts b/src/services/melo-tts.ts index bc3dcb1..5cb4c05 100644 --- a/src/services/melo-tts.ts +++ b/src/services/melo-tts.ts @@ -13,7 +13,7 @@ async function run(command: string, args: string[], stdio: "ignore" | "inherit" const child = spawn(command, args, { stdio: ["ignore", stdio, "inherit"], windowsHide: true, - shell: process.platform === "win32", + shell: process.platform === "win32" && !path.isAbsolute(command), }); child.on("error", (error) => { diff --git a/src/setup-tts.ts b/src/setup-tts.ts index c979aa8..9a73363 100644 --- a/src/setup-tts.ts +++ b/src/setup-tts.ts @@ -14,7 +14,7 @@ async function run(command: string, args: string[], cwd = process.cwd()): Promis cwd, stdio: "inherit", windowsHide: true, - shell: process.platform === "win32", + shell: process.platform === "win32" && !path.isAbsolute(command), }); child.on("error", (error) => {