Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

250
Vistas
unable to do auto installation in electron app

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]

https://i.stack.imgur.com/EJGnH.png

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda