fix macOS updater

This commit is contained in:
pompurin404 2024-09-20 19:19:03 +08:00
parent 65c6de31a6
commit d3a4a7f3f0
No known key found for this signature in database

View File

@ -86,7 +86,7 @@ export async function downloadAndInstallUpdate(version: string): Promise<void> {
}
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()
}