electron-updater and private source code
See original GitHub issueIn 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
:
However the auto-updater docs say not to use setFeedURL
:
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:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, please re-open this issue! I am in the same exact situation with my project.
Saludooo!!!
Estoy actualmente en la misma problemática, alguien ha podido encontrar la solución?