fix: update failed(updater.install called before updater.download)

This commit is contained in:
huzibaca 2024-11-25 05:27:26 +08:00
parent 1cd1a2d907
commit 6ad975c420

View File

@ -79,7 +79,7 @@ export const UpdateViewer = forwardRef<DialogRef>((props, ref) => {
},
);
try {
await updateInfo.install();
await updateInfo.downloadAndInstall();
await relaunch();
} catch (err: any) {
Notice.error(err?.message || err.toString());