Compare commits

...
Author SHA1 Message Date
Hona ea15a0d025 fix(windows): hide background subprocess windows 2026-10-02 23:29:05 +00:00
4 changed files with 4 additions and 2 deletions

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ export function spawnServiceContender(
): ServiceContender {
const child = spawn(command, args, {
detached: true,
windowsHide: true,
stdio: ["ignore", "ignore", "pipe"],
env: { ...process.env, ...env },
})
@@ -229,6 +229,7 @@ export const makeDaemonTransport = Effect.fn("PersistentPty.makeDaemonTransport"
new Promise<ReturnType<typeof spawn>>((resolve, reject) => {
const child = spawn(executable, ["daemon"], {
detached: true,
windowsHide: true,
stdio: "ignore",
env: { ...process.env, OPENCODE_PTY_RUNTIME_DIR: directory },
})
+1 -1
View File
@@ -27,7 +27,7 @@ async function signWindows(configuration: { path: string }) {
await execFileAsync(
"pwsh",
["-NoLogo", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", signScript, configuration.path],
{ cwd: rootDir },
{ cwd: rootDir, windowsHide: true },
)
}
+1 -1
View File
@@ -35,7 +35,7 @@ const checkMacosApp = Effect.fn("DesktopFiles.checkMacosApp")(function* (appName
const resolveWindowsAppPath = Effect.fn("DesktopFiles.resolveWindowsAppPath")(function* (appName: string) {
const fs = yield* FileSystem.FileSystem
const path = yield* Path.Path
const result = yield* Effect.tryPromise(() => execFilePromise("where", [appName])).pipe(
const result = yield* Effect.tryPromise(() => execFilePromise("where", [appName], { windowsHide: true })).pipe(
Effect.orElseSucceed(() => undefined),
)
if (!result) return null