Skip to content

Commit 1bbcfb3

Browse files
authored
fix: inherit stdio for electron-updater exec (#7393) (#7394)
1 parent 0448896 commit 1bbcfb3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/sharp-olives-decide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"electron-updater": patch
3+
---
4+
5+
fix: inherit stdio for updated processes (#7393)

packages/electron-updater/src/BaseUpdater.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export abstract class BaseUpdater extends AppUpdater {
119119
protected spawnSyncLog(cmd: string, args: string[] = [], env = {}): string {
120120
this._logger.info(`Executing: ${cmd} with args: ${args}`)
121121
const response = spawnSync(cmd, args, {
122-
stdio: "pipe",
122+
stdio: "inherit",
123123
env: { ...process.env, ...env },
124124
encoding: "utf-8",
125125
shell: true,
@@ -139,7 +139,7 @@ export abstract class BaseUpdater extends AppUpdater {
139139
return new Promise<boolean>((resolve, reject) => {
140140
try {
141141
const p = spawn(cmd, args, {
142-
stdio: "pipe",
142+
stdio: "inherit",
143143
env: { ...process.env, ...env },
144144
detached: true,
145145
})

0 commit comments

Comments
 (0)