我的代码
https://github.com/mergeweb/electron-forge-updater-v6
我有一个更新程序,但是当应用程序退出并重新启动时,不会应用更新。
const dialogOpts = {
type: 'info',
buttons: ['Restart', 'Later'],
title: 'Application Update',
message: process.platform === 'win32' ? releaseNotes : releaseName,
detail:
'A new version has been downloaded. Restart the application to apply the updates.'
};
dialog.showMessageBox(dialogOpts, response => {
if (response === 0) autoUpdater.quitAndInstall();
});