jeudi 24 novembre 2016

Electron auto-update isn't working in emberjs

I try to implement auto-update from electron in emberjs, but the Examples aht docs does not work.

//const autoUpdater = requireNode('ember-electron').autoUpdater; //undefined
const autoUpdater = requireNode('auto-updater');
const appVersion = requireNode('./package.json').version;
//const os = require('os').platform();
//console.log('TEST');

autoUpdater.setFeedURL('http://localhost:80/updates/latest' + '?v=' + appVersion);

Do i somethink wrong with the reqire? I get this two errors:

Uncaught Error: Cannot find module 'auto-updater'

C:\dev\project\node_modules\electron-prebuilt\dist\resources\electron.asar\renderer\in…:113 Uncaught TypeError: Cannot read property 'listeners' of undefined




Aucun commentaire:

Enregistrer un commentaire