fix macOS updater
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions

This commit is contained in:
pompurin404 2024-09-20 19:19:03 +08:00
parent d8f1f3e4e0
commit eea4560104
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()
}