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

This commit is contained in:
huzibaca 2024-11-25 05:27:26 +08:00
parent 2c0a5666fc
commit 97f03de295
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

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