mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +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…
x
Reference in New Issue
Block a user