Changed autodownload to be true and send completion event on update-downloaded.
This commit is contained in:
@@ -19,7 +19,7 @@ const Nucleus = require("nucleus-nodejs");
|
||||
require("./ipc-main-handler");
|
||||
require("./analytics");
|
||||
|
||||
autoUpdater.autoDownload = false;
|
||||
autoUpdater.autoDownload = true;
|
||||
|
||||
autoUpdater.logger = log;
|
||||
autoUpdater.logger.transports.file.level = "info";
|
||||
@@ -314,6 +314,10 @@ autoUpdater.on("download-progress", (ev) => {
|
||||
autoUpdater.on("update-downloaded", (ev, info) => {
|
||||
Nucleus.track("UPDATE_DOWNLOADED", ev);
|
||||
// if (process.env.NODE_ENV === "production") {
|
||||
mainWindow.webContents.send(ipcTypes.app.toRenderer.downloadProgress, {
|
||||
...ev,
|
||||
percent: 100,
|
||||
});
|
||||
|
||||
dialog
|
||||
.showMessageBox({
|
||||
|
||||
Reference in New Issue
Block a user