diff --git a/src/utils/misc.ts b/src/utils/misc.ts index 8f098bd..ca7a75c 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -24,7 +24,9 @@ export const printAndDevTool = (win: BrowserWindow, error: string) => { }; /** Run a command asynchronously */ -export const execute = (command: string) => { +export const execute = ( + command: string +): Promise<{ stdout: string; stderr: string }> => { return new Promise((resolve, reject) => { child_process.exec(command, (error, stdout, stderr) => { if (error) {