I'm trying to do auto installation of electron app in windows by referring to the below link :
https://www.electronjs.org/docs/latest/api/auto-updater
code :
const { app, autoUpdater } = require('electron');
function showLoginWindow() {
autoUpdater.setFeedURL({url:"S3-bucket-url"});
autoUpdater.checkForUpdates();
autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => {
const dialogOpts = {
type: 'info',
buttons: ['Restart', 'Later'],
title: 'Application Update',
message: process.platform === 'win32' ? releaseNotes : releaseName,
detail: 'A new version has been downloaded. Restart the application to apply the updates.'
}
dialog.showMessageBox(dialogOpts).then((returnValue) => {
if (returnValue.response === 0) autoUpdater.quitAndInstall()
})
})
autoUpdater.on('error', message => {
console.error('There was a problem updating the application')
console.error(message)
})
}
But when I try to run the app I'm getting the below error.Could anyone let me know where I'm going wrong?
[errorMsg]