Open CBaptiste opened 8 years ago
I went though the same misunderstanding. I think you don't use that package and you use the one bundled with electron like const autoUpdater = require('electron').autoUpdater
.
Indeed @safinn, it will work with the builtin electron autoUpdater ! Clarification needed on the documentation :)
I had a hell of a time with this problem and just wanted to post my solution (since it took me hours to figure out)--it's setFeedURL
, not setFeedUrl
. Getting it wrong will result in the 'not a function' error seen above as well.
Hi there !
Thanks a lot for this project ! In the documentation, the autoupdate seems pretty straightforward.
const autoUpdater = require('auto-updater');
autoUpdater.setFeedUrl('http://download.myapp.com/update/'+platform+'/'+version);
However, I don't understand why I get
TypeError: autoUpdater.setFeedURL is not a function
. After reading https://www.npmjs.com/package/auto-updater, there is no reference to such method. Are you sure the tutorial is using the right package ?Thank a lot in advance,
Baptiste