I am writing an Electron Application for Windows with auto update capabilities, using the autoUpdater API.
app.on('ready', function(){
console.log('application emitted "ready"');
var autoUpdater = require('auto-updater');
autoUpdater.setFeedURL(releaseUrl);
console.log('releaseUrl: ' + releaseUrl);
autoUpdater
.on('error', function(){
console.log(arguments);
})
.on('checking-for-update', function() {
console.log('Checking for update');
})
.on('update-available', function() {
console.log('Update available');
})
.on('update-not-available', function() {
console.log('Update not available');
createWindow();
})
.on('update-downloaded', function() {
console.log('Update downloaded');
});
autoUpdater.checkForUpdates();
});
So far the only event that I can get to fire is the error event and it logs out this message:
{ '0': [Error: Can not find Squirrel],
'1': 'Can not find Squirrel' }
Am I supposed to install some Squirrel package? I cant find anything in the documentation about installing extra packages for Squirrel.
This is in electron v0.36.0