question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with Auto-Update (downgrade is disallowed)

See original GitHub issue
  • Electron builder version: 20.19.2
  • Electron updater version: 4.0.6
  • Electron version: 3.1.9
  • Target: Win x64

Hi guys,

I have an error trying to update my app in development environment:

This is my feed url:

autoUpdater.setFeedURL({
    provider: 'github',
    repo: 'gestios-native',
    owner: '50l3r',
    private: true,
    token: 'XXXXXXXXXXXXXXXXXXX'
});
autoUpdater.checkForUpdates();

And i listen all events and send to ipcrenderer:

const sendStatusToWindow = (text) => {
	if(mainWindow){
		mainWindow.webContents.send('message', text);
	}
};

autoUpdater.on('checking-for-update', () => {
	sendStatusToWindow('Checking for update...');
});

autoUpdater.on('update-available', () => {
	sendStatusToWindow('Update available');
});

autoUpdater.on('update-available', () => {
	sendStatusToWindow('Update not available');
});

autoUpdater.on('error', err => {
	sendStatusToWindow(`Error updating: ${err.toString()}`);
});

autoUpdater.on('download-progress', progressObj => {
	sendStatusToWindow(`Download speed: ${progressObj.bytesPerSecond} - Download ${progressObj.percent}%`);
});

autoUpdater.on('update-downloaded', () => {
	sendStatusToWindow(`Update downloaded: Installing...`);

	autoUpdater.quitAndInstall();
});

I have only one release:

But when i execute npm run dev i recieve this error:

Update for version 3.1.9 is not available (latest version: 0.0.1, downgrade is disallowed).

3.1.9 its my electron version. ¿Why can detect the electron version instead of my app?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
zahergcommented, May 22, 2019

When running your development code the version which electron will pick is electron app not your app, you should build your app and try it as a production app.

0reactions
zahergcommented, Aug 12, 2019

@Skriptach Short answer, when using electron-updater you should not use setFeedURL.

My long answer can be found here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto Update - electron-builder
An update check uses up to 3 requests per check. Events¶. The autoUpdater object emits the following events: Event: error ¶. error Error....
Read more >
Electron Auto Update not working on Windows - Stack Overflow
I'm having difficulties getting AutoUpdate for an electron app to work on Windows. The app itself is working as intended on both Win...
Read more >
We detected a problem with Microsoft AutoUpdate. To correct ...
1. To renew the MAU(Microsoft AutoUpdate), kindly open Word for Mac then click Help>Check for updates ; 2. Then go to /Library/Application ...
Read more >
Manage Chrome updates (Windows) - Google Support
Troubleshoot · On a managed device, go to chrome://policy. · Click Reload policies. · Check the Show policies with no value set box....
Read more >
ONTAP 9 Upgrade and Revert/Downgrade Guide - NIAP
You need to know about downgrade issues and limitations before ... Starting with ONTAP 9.2, automatic updates can also be performed on single-node...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found