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

This commit is contained in:
huzibaca
2024-11-25 05:27:26 +08:00
Unverified
parent 2c0a5666fc
commit 97f03de295

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());