I've been trying to get electron-updater to update from latest releases that I put on Github but it keeps triggering this error.
code: 'ERR_UPDATER_ASSET_NOT_FOUND' }
What kind of files do you need to have in a Github release in order for previous versions to update properly?
so far I have the setup.exe, the setup.exe.blockmap, and the latest.yml
It successfully detects that an update is available in
autoUpdater.on('update-available', () => {
but then immediately throws an error in
autoUpdater.on('error', (err, err2) => {
resulting in an error of code: 'ERR_UPDATER_ASSET_NOT_FOUND' }
Previously, I had an issue where I was forgetting to put in latest.yml, but now, I'm really not sure as to what I should do.
check the latest.yml file. It should be something like this -
Most probably, the url name and path might not be matching with the uploaded file names in github. Spaces are replaced with - in github. It might be naming issue. I faced the similar issue.