Skip to content
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 do I add release notes? #31

Open
ishwarrimal opened this issue Jun 28, 2017 · 0 comments
Open

How do I add release notes? #31

ishwarrimal opened this issue Jun 28, 2017 · 0 comments

Comments

@ishwarrimal
Copy link

ishwarrimal commented Jun 28, 2017

I am trying to add release notes in my update information (on windows system). But i am not able to do so.

And is there any way to prevent autoupdate?
I am trying this. Its updating the app in both the case

autoUpdater.on('update-available', () =>{
console.log('update is available');
var index = dialog.showMessageBox(mainWindow, {
type: 'info',
buttons: ['Update','Later'],
title: "My App",
message: 'The new version of my app is available. Do you want to download now?'
});

        if (index === 1) {
            return;
        }

        autoUpdater.on('update-downloaded', function (event,releaseName) {

            // # confirm install or not to user
            var index = dialog.showMessageBox(mainWindow, {
                type: 'info',
                buttons: ['Restart','Later'],
                title: "My Tech Solution",
                message: 'The new version has been downloaded. Please restart the application to apply the updates.',
                detail: releaseName
            });

            if (index === 1) {
                return;
            }

            // # restart app, then update will be applied
            autoUpdater.quitAndInstall();
        });
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant