Skip to content

Commit 92a3fe1

Browse files
authored
docs: add section for how to handle update servers with auth (electron#23000)
In some situations, we can't use auto update to communicate with our update server directly, and proxies can be tricky to get working. I spent a loooong time exploring a lot of options before coming across the comment I linked, so It thought it could be beneficial to people like me of the future.
1 parent 979c291 commit 92a3fe1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/tutorial/updates.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ autoUpdater.on('error', message => {
132132
})
133133
```
134134

135+
## Handing Updates Manually
136+
137+
Because the requests made by Auto Update aren't under your direct control, you may find situations that are difficult to handle (such as if the update server is behind authentication). The `url` field does support files, which means that with some effort, you can sidestep the server-communication aspect of the process. [Here's an example of how this could work](https://github.com/electron/electron/issues/5020#issuecomment-477636990).
138+
135139
[now]: https://zeit.co/now
136140
[hazel]: https://github.com/zeit/hazel
137141
[nuts]: https://github.com/GitbookIO/nuts

0 commit comments

Comments
 (0)