From d3a4a7f3f0b2fe2e24f997d757d729c1e4068266 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Fri, 20 Sep 2024 19:19:03 +0800 Subject: [PATCH] fix macOS updater --- src/main/resolve/autoUpdater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resolve/autoUpdater.ts b/src/main/resolve/autoUpdater.ts index 8c7cd04..6039e20 100644 --- a/src/main/resolve/autoUpdater.ts +++ b/src/main/resolve/autoUpdater.ts @@ -86,7 +86,7 @@ export async function downloadAndInstallUpdate(version: string): Promise { } if (file.endsWith('.zip')) { const execPromise = promisify(exec) - await execPromise(`unzip -o '${path.join(dataDir(), file)}' -d /Applications`) + await execPromise(`unzip -o -K '${path.join(dataDir(), file)}' -d /Applications`) app.relaunch() app.quit() }