-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electron-updater does not update app, ERR_CONNECTION_REFUSED error #2289
Comments
Where did you publish your app to? Is the |
@tylerlong Thanks for your reply! The |
I should also add that this is a private repository, but I do have my |
macOS apps has own set of env. terminal env are not available for apps. Please use https://github.com/sindresorhus/shell-env And I hope that you understand what do you do using private repo for updates. Separate user must be used and |
Thanks @develar What do you mean by "I hope you understand what do you do using private repo for updates"? What else do I need to do for private repos besides setting the Will this address the error I shared above? |
API Token allows to do everything. So, you must create special user and limit user access.
shell-env will. |
@naheller Have your read https://www.electron.build/auto-update#private-github-update-repo? (yes, I am going to add note about shell-env to docs). |
@develar By "special user", do you mean GitHub user? Many people who will use my app don't have GitHub accounts. This is my first time using auto-update, so I'm not sure about special user access. I am looking at the page you linked. Is the Thanks for your help! |
@naheller It seems you don't understand that auto-updater requires token on a user machine to work.
See https://www.electron.build/auto-update#private-github-update-repo So, just use Digital Ocean Spaces or Amazon S3. |
@develar Ah... I see. GitHub Releases would have been perfect, but I will try those other solutions. electron-release-server might be a good option in the meantime for testing. Thanks for your help |
https://github.com/ArekSredzki/electron-release-server is not definitely an option because it requires non static server. Electron updater supports any http server, nothing else is required. |
Well, you can just create an empty public repo and use it to release artifacts;) |
@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. |
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:
npm run build
which is short forwebpack --config webpack.build.config.js
npm run publish
which is short forbuild -p always
, which spits out mydmg
,zip
,latest-mac
files, etc and publishes them to a GitHub Release.dmg
(an initial releasev0.0.1
, so no updates available yet)v0.0.2
is uploaded as GitHub Release, reopenv0.0.1
and expect it to update tov0.0.2
, which it does not.my
main.js
:and my error message:
Any advice would be greatly appreciated! Let me know if you'd like any additional details, like my
package.json
or otherwise.The text was updated successfully, but these errors were encountered: