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.

electron-updater does not update app, ERR_CONNECTION_REFUSED error

See original GitHub issue
  • electron-builder version: 19.45.2
  • electron-updater version: 2.16.1
  • target: [“zip”, “dmg”]

I am trying to use electron-updater for a Mac app release. I’ve built on top of basic-electron-react-boilerplate and added in electron-builder and electron-updater.

My workflow looks like this:

  1. Make changes to code
  2. Push code to repository
  3. Run npm run build which is short for webpack --config webpack.build.config.js
  4. Run npm run publish which is short for build -p always, which spits out my dmg, zip, latest-mac files, etc and publishes them to a GitHub Release.
  5. Download and install dmg (an initial release v0.0.1, so no updates available yet)
  6. Repeat steps 1-4, and when my first update v0.0.2 is uploaded as GitHub Release, reopen v0.0.1 and expect it to update to v0.0.2, which it does not.

my main.js: screen shot 2017-11-08 at 5 19 02 pm

and my error message: screen shot 2017-11-08 at 5 21 24 pm

Any advice would be greatly appreciated! Let me know if you’d like any additional details, like my package.json or otherwise.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Nov 9, 2017

@naheller It will looks a little bit crazy, but works. https://github.com/electron-userland/electron-builder-binaries/releases is an example of such repo.

1reaction
tylerlongcommented, Nov 9, 2017

Where did you publish your app to? Is the latest-mac.json file publicly accessible?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron ERR_CONNECTION_REFUSED to localhost:3000 ...
Ever since I've built this application, I can no longer run npm run dev to develop this app locally (localhost:3000), I get this...
Read more >
ElectronNET/community - Gitter
I'm trying to use a react/typescript project made with create react app and am currently getting a "react-scripts: command not found" error. Any...
Read more >
Updating Applications | Electron
There are several ways to update an Electron application. The easiest and officially supported one is taking advantage of the built-in Squirrel framework ......
Read more >
ERR_CONNECTION_REFUSED | How to fix the error - IONOS
The ERR_CONNECTION_REFUSED error is a client-side problem that can be caused by incorrect firewall, system or browser settings, but also by ...
Read more >
Angular Service Worker - Step-By-Step Guide
The first step to create an Angular PWA is to upgrade the Angular CLI to the latest ... SwUpdate for managing application version...
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