重新启动后,电子自动更新将不适用。 OSX

时间:2018-12-05 17:40:25

标签: reactjs electron auto-update electron-forge

我的代码

https://github.com/mergeweb/electron-forge-updater-v6

我有一个更新程序,但是当应用程序退出并重新启动时,不会应用更新。

  1. 我该如何调试?
  2. 您知道更新文件的下载位置吗?
  3. 更新文件必须是dmg吗?
    1. (更新)-Looks like the file does not have to be dmg.

enter image description here

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

0 个答案:

没有答案