GitbookIO / nuts

:chestnut: Releases/downloads server with auto-updater and GitHub as a backend
http://nuts.gitbook.com
Apache License 2.0
1.25k stars 299 forks source link

Simple setFeedUrl do not work #93

Open CBaptiste opened 8 years ago

CBaptiste commented 8 years ago

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

safinn commented 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.

CBaptiste commented 8 years ago

Indeed @safinn, it will work with the builtin electron autoUpdater ! Clarification needed on the documentation :)

mattbryan9 commented 7 years ago

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.