You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of electron-updater are you using (if applicable)?: 6.1.8
Target: zip
What operating system are you using?
macOS
Operating System Version
MacOS Monterrey 12.0.1
What arch are you using?
arm64 (including Apple Silicon)
Expected Behavior
Desktop application closes upon confirmation of Restart, Installs software update and reboots application
Actual Behavior
Application closes and never relaunches. The dot is present below the app in the dock
Currently using a self-hosted static server to download new software versions.
src/main/index.js
// on the update being downloaded, ask user if they'd like to update
autoUpdater.on("update-downloaded", (info) => {
const dialogOpts = {
type: "info",
buttons: ["Restart", "Cancel"],
title: "Application Update",
detail:
"A new version has been downloaded. Restart the application to apply the updates.",
};
dialog
.showMessageBox(dialogOpts)
.then((response) => {
if (response.response === 0) {
setImmediate(() => {
app.removeAllListeners("window-all-closed");
const browserWindows = BrowserWindow.getAllWindows();
browserWindows.forEach((browserWindow) => {
browserWindow.close(); // Close all windows
});
autoUpdater.quitAndInstall();
});
}
})
.catch((err) => console.log(err));
});
What operating system are you using?
macOS
Operating System Version
MacOS Monterrey 12.0.1
What arch are you using?
arm64 (including Apple Silicon)
Expected Behavior
Desktop application closes upon confirmation of Restart, Installs software update and reboots application
Actual Behavior
Application closes and never relaunches. The dot is present below the app in the dock
Currently using a self-hosted static server to download new software versions.
src/main/index.js
electron-builder.config.js
I must also mention the app is not signed - I wonder if that may be contributing to the issues being faced.
The text was updated successfully, but these errors were encountered: