-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use allowPrerelease? #1923
Comments
FYI here are the beta releases - |
Sorry for late response. I see, that now you use latest versions of electron-updater. So, I will check manually, because according to code should work. |
I don't know what was the problem but it works with |
However, I have noticed that my app was not able to auto-relaunch itself once the updater finished downloading updates. When I choose |
@akashnimare Please see #1604 (comment) |
Tried using following code but still not working - autoUpdater.on('update-downloaded', (event, info) => {
// Ask user to update the app
dialog.showMessageBox({
type: 'question',
buttons: ['Install and Relaunch', 'Install Later'],
defaultId: 0,
message: 'A new version of ' + app.getName() + ' has been downloaded',
detail: 'It will be installed the next time you restart the application'
}, response => {
if (response === 0) {
setTimeout(() => {
app.removeAllListeners('window-all-closed');
app.removeAllListeners('close');
autoUpdater.quitAndInstall();
});
}
});
});
// Init for updates
autoUpdater.checkForUpdates(); Any idea what's going wrong here? |
@akashnimare Why do you use |
Tried |
Are you really need to show message box? May be just show notification that new version is available? To not interrupt users? |
Just an idea — try to remove https://github.com/zulip/zulip-electron/blob/d17c685e4d0c240c25b111aeba8c25c285b19892/app/main/index.js#L77 |
Calling setTimeout(() => {
autoUpdater.quitAndInstall();
app.quit();
}, 1000);
Can't remove this event, since we don't want to close the app when user closes the app ( using CMD + W etc), we just hide the window. Ideally, when you click on Thanks for the help :) |
17.10.0
1.11.2
In our app we have added an option for getting the beta updates.
This is how we are setting the
allowPrerelease
parameter -Full code here. Even after setting it
ConfigUtil.getConfigItem('betaUpdate')
to true, app don't fetch the latest version. Am I missing something here?Logs after setting the betaUpdate option and restarting app-
Steps to reproduce -
/Users/%USERNAME%/Library/Application Support/Zulip
The text was updated successfully, but these errors were encountered: