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.

AutoUpdate not working

See original GitHub issue

`import { autoUpdater } from “electron-updater”

if (process.env.WEBPACK_DEV_SERVER_URL) {
	// Load the url of the dev server if in development mode
	win.loadURL(process.env.WEBPACK_DEV_SERVER_URL)
	if (!process.env.IS_TEST) win.webContents.openDevTools()
} else {
	createProtocol('app')
	// Load the index.html when not in development
	win.loadURL('app://./index.html')

	autoUpdater.checkForUpdatesAndNotify()
}

publish: [{ provider: “github”, owner: “git account name”, repo: “repo url”, releaseType: “draft”, channel: “latest”, }]`

I have this in my background.js. I do all the steps, installed the app, increased versions, used npm run electron:build – -p always, I publish release on github. I get not update and no notification when I open the app again. I followed all steps from here https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/recipes.html#auto-update

I used electron log to debug and I get:

Error: Error: Unsupported provider: undefined at newError (webpack:///./node_modules/electron-updater/node_modules/builder-util-runtime/out/index.js?:212:17) at createClient (webpack:///./node_modules/electron-updater/out/providerFactory.js?:103:48) at eval (webpack:///./node_modules/electron-updater/out/AppUpdater.js?:482:99) at async NsisUpdater.getUpdateInfoAndProvider (webpack:///./node_modules/electron-updater/out/AppUpdater.js?:485:20) at async NsisUpdater.doCheckForUpdates (webpack:///./node_modules/electron-updater/out/AppUpdater.js?:506:20)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nklaymancommented, Jan 3, 2020

This behavior is intended by electron-builder. You can update from private repos, but it is only for very specific use cases. See the docs for more info.

0reactions
Nistharcommented, Dec 2, 2020

Should i create a new issue for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Microsoft AutoUpdate in Microsoft 365 and ...
An error message upon attempting to run Microsoft AutoUpdate (MAU) may be due to a missing helper file or incorrectly set permissions.
Read more >
How to Fix Microsoft Office AutoUpdate for Mac not working
Launch any of the Office apps, then click Help > Check for Updates, then click Install. updating. That's it! You should now be...
Read more >
Google Play Store Isn't Auto-Updating Apps? Try These Fixes
Some apps fail to update despite auto-update settings being enabled. To fix this issue, you could go into the Google Play Store and...
Read more >
MS office autoupdate not working. | MacRumors Forums
Every time an update fails, it fails with a RemoteInspector XPC connection to relay failed error. Code: [Microsoft Update Assistant] <Error> ...
Read more >
Automatic app updates not working - Apple Community
There are a few things you can try in order to get automatic updates working. First you can follow the steps in this...
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