You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Auto Update.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ Simplified auto-update is not supported for Squirrel.Windows.
26
26
27
27
`latest.yml` (or `latest-mac.json` for macOS) will be generated and uploaded for all providers except `bintray` (because not required, `bintray` doesn't use `latest.yml`).
28
28
29
+
## Private Update Repo
30
+
31
+
You can use a private repository for updates with electron-updater by setting the `GH_TOKEN` environment variable. If`GH_TOKEN` is set, electron-updater will use the GitHub APIfor updates allowing private repositories to work.
32
+
33
+
**Note:** The GitHub API currently has a rate limit of5000 requests per user per hour. An update check uses up to 3 requests per check. If you are worried about hitting your rate limit, consider using [conditional requests](https://developer.github.com/v3/#conditional-requests) before checking for updates to reduce rate limit usage.
34
+
29
35
## Debugging
30
36
31
37
You don't need to listen all events to understand what's wrong. Just set `logger`.
thrownewError(`Unable to find latest version on GitHub (${formatUrl(<any>requestOptions)}), please ensure a production release exists: ${e.stack||e.message}`)
0 commit comments