mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +08:00
fix macOS updater
This commit is contained in:
parent
65c6de31a6
commit
d3a4a7f3f0
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user