Fix upgrades

This commit is contained in:
Scott E. Graves
2019-07-02 21:13:56 -05:00
parent 37ce52df75
commit c632c2eaaa
3 changed files with 26 additions and 14 deletions

View File

@@ -765,7 +765,7 @@ ipcMain.on(Constants.IPC_Install_Upgrade, (event, data) => {
.executeAsync(command, args)
.then(() => {
cleanupFiles();
closeApplication();
standardIPCReply(event, Constants.IPC_Install_Upgrade_Reply)
})
.catch(error => {
errorHandler(error);
@@ -791,7 +791,11 @@ ipcMain.on(Constants.IPC_Install_Upgrade, (event, data) => {
errorHandler(Error('Failed to verify installation package hash'));
});
} else {
executeInstall();
if (platform === 'darwin') {
setTimeout(executeInstall, 3000);
} else {
executeInstall();
}
}
} else {
errorHandler(Error('Unsupported upgrade: ' + data.Source));