I'am working on a desktop app using electron everything is working well, except for the autoUpdater.setFeedURL() method, it returns always this exception : "Update check failed. The server sent an invalid response. Try again later."
if(!isDev)
{
autoUpdater.setFeedURL({
"url":"https://github.com/MyUsername/MyRepos/releases/"
});
autoUpdater.checkForUpdates();
}
Yeah! after 2 days of headache, I found that simply I was using a deprecated version of autoUpdater, I should be using this :
const { autoUpdater } = require('electron-updater');
So what I did next is just remove the setFeedURL line and instead of autoUpdater.checkForUpdates() I used autoUpdater.checkForUpdatesAndNotify()
if(!isDev)
{
autoUpdater.checkForUpdatesAndNotify();
}