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 and private source code

See original GitHub issue

In a recent issue #2289 I learned that electron-updater requires a GH_TOKEN on each user’s machine in order to download private GitHub Releases. Since my app is only meant for employees of my company, I’m wondering if I can include the token in my code, and serve the initial DMG internally.

I got this idea from an issue over at electron-updater-example, which uses setFeedURL:

screen shot 2017-11-11 at 3 50 59 pm

However the auto-updater docs say not to use setFeedURL:

screen shot 2017-11-11 at 4 04 10 pm

I understand the security risks in hardcoding a token into the code, but is it possible to allow an app using electron-updater to download updates from a private GitHub repo using this method somehow?

If not, would this be possible using S3 in a similarly private/closed source situation?

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AlmondBrocommented, Feb 15, 2019

Hi, please re-open this issue! I am in the same exact situation with my project.

0reactions
jesusroglierocommented, Apr 14, 2022

Saludooo!!!

Estoy actualmente en la misma problemática, alguien ha podido encontrar la solución?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto-update Electron applications with private repositories ...
Learn how to add auto-update support to your commercial Electron applications using private repositories.
Read more >
Auto Update - electron-builder
You can use a private repository for updates with electron-updater by setting the GH_TOKEN environment variable (on user machine) and private option. If ......
Read more >
Electron Autoupdater with Private GitHub Repository?
I have implemented Electron AutoUpdater with PRIVATE GitHub Repository as provider to publish electron application. Now, i can publish it using ...
Read more >
Updating Applications | Electron
The Electron team maintains update.electronjs.org, a free and open-source webservice that Electron apps can use to self-update. The service is designed for ...
Read more >
electron-simple-updater - npm
// Just place this code at the entry point of your application: const updater = require('src/index'); updater.init('https://raw.
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