Electron-builder: feat: use electron session and electron net APIs for /packages/electron-builder/src/util/nodeHttpExecutor

Created on 3 Jan 2017  路  3Comments  路  Source: electron-userland/electron-builder

Hi, in my electron app, I am using electron's net API to do my API requests to my services.
This allows me to specify an electron session object that supports having a proxy in place.
However, when I go to use the electron-auto-updater module, the http/https requests are being made directly via the node.js's APIs, in _this file_ (line 46 & 116) I think.

Is it possible to have a way to make it use the electron net API, or have an option for it somewhere?

question

Most helpful comment

electron-auto-updater does use the electron net API The nodeHttpExecutor only used in the context of builds/ci the electronHttpexecutor is used when your app checks for updates

All 3 comments

electron-auto-updater does use the electron net API The nodeHttpExecutor only used in the context of builds/ci the electronHttpexecutor is used when your app checks for updates

@Unchosen nodeHttpExecutor.ts is not used in the electron-auto-updater.

Thanks for the quick response, and sorry for me misunderstanding it.
So I'll just need to set the proxy on electron.session.defaultSession I assume

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xingoxu picture xingoxu  路  3Comments

ccorcos picture ccorcos  路  3Comments

antonycourtney picture antonycourtney  路  3Comments

mstralka picture mstralka  路  3Comments

NPellet picture NPellet  路  3Comments