mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Custom startup Code #233
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@GregorBiswanger commented on GitHub (Jan 3, 2019):
Duplicate of #43