v1.1.0: Skills integration, cross-platform support, bug fixes
This commit is contained in:
@@ -67,14 +67,20 @@ async function runQwenOnce(
|
||||
const args = [...baseArgs];
|
||||
if (model.trim()) args.push("--model", model.trim());
|
||||
|
||||
// Use qwen.cmd on Windows for proper execution
|
||||
const qwenCommand = process.platform === "win32" ? "qwen.cmd" : "qwen";
|
||||
// Cross-platform command detection
|
||||
const qwenCommand = process.platform === "win32"
|
||||
? "qwen.cmd"
|
||||
: process.platform === "darwin"
|
||||
? "qwen"
|
||||
: "qwen";
|
||||
|
||||
const proc = Bun.spawn([qwenCommand, ...args], {
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
env: buildChildEnv(baseEnv, model, api),
|
||||
shell: true,
|
||||
// Detach on non-Windows to allow background execution
|
||||
detached: process.platform !== "win32",
|
||||
});
|
||||
|
||||
const [rawStdout, stderr] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user