Fix upgrades
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user