Custom startup Code #233

Closed
opened 2026-01-29 16:34:23 +00:00 by claunia · 1 comment
Owner

Originally created by @BickelLukas on GitHub (Nov 12, 2018).

It would be great if we were able to customize the code that's used to start the electron (and consiquently the .net) app. For example, I would like to check for updates on startup using https://github.com/electron/update.electronjs.org

That's not possible at the moment.

Proposal:
Provide the Electron.NET.Host as an npm package. That way users can just have their own main.js and import the package and call "electron.net.start()" (or something similar). This would then start the .net app and setup the socket. Maybe you could also return an instance to the socket so that users could even implement their own methods.

That would also solve the problem with custom node modules.

Let me know what you think. I would also be happy to work on it and submit a PR.

Originally created by @BickelLukas on GitHub (Nov 12, 2018). It would be great if we were able to customize the code that's used to start the electron (and consiquently the .net) app. For example, I would like to check for updates on startup using https://github.com/electron/update.electronjs.org That's not possible at the moment. **Proposal**: Provide the Electron.NET.Host as an npm package. That way users can just have their own main.js and import the package and call "electron.net.start()" (or something similar). This would then start the .net app and setup the socket. Maybe you could also return an instance to the socket so that users could even implement their own methods. That would also solve the problem with custom node modules. Let me know what you think. I would also be happy to work on it and submit a PR.
Author
Owner

@GregorBiswanger commented on GitHub (Jan 3, 2019):

Duplicate of #43

@GregorBiswanger commented on GitHub (Jan 3, 2019): Duplicate of #43
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#233