Commit Graph

10 Commits

Author SHA1 Message Date
Josh Tynjala
da3705ed20 Electron: update to latest version 18
-lib hxnodejs is no longer included in the compilation of ApplicationMain (but it is still included for compilation of ElectronSetup, of course). hxnodejs was removed from ApplicationMain because it forces some require() calls to be included in the generated .js, which would require disabling certain Electron security features to work properly in newer versions of Electron than we targeted previously. Electron's documentation recommends not to do that.

To use Node.js APIs, you need to run them in more secure contexts, while communicating over IPC with a "preload script" from the "renderer" process. In Lime/OpenFL, this would require a custom ElectronSetup template override, but that shouldn't be all that surprising. See: https://www.electronjs.org/docs/latest/tutorial/process-model for more details on the Electron side.
2022-04-14 12:08:58 -07:00
Josh Tynjala
b17bc6100b electron: sets -D electron to allow differentiation between plain html5 and electron, if needed 2021-10-19 17:57:36 -07:00
Joshua Granick
883ba6260e Add hxnodejs to Electron template 2019-11-11 11:07:47 -08:00
Joshua Granick
21d64f9c1c Remove hxelectron dependency 2019-10-05 17:46:13 -07:00
Lewis Sobotkiewicz
e2ae97d6cc Don't use the hxelectron library when building ApplicationMain. That sets the 'nodejs' compiler flag, which emits improper JavaScript when running in the Electron window. 2019-09-20 21:10:48 -07:00
Thomas Byrne
49d472c278 Electron HXML was not including 'html', 'html5' & '-debug' flags for main application (only for ElectronSetup.hx) 2018-11-01 16:50:29 -07:00
P.J.Shand
4aeb59f7f1 amend hxml templates
Rename Electron.hx to ElectronSetup.hx to make it more clear what it does
2018-07-31 08:54:44 -07:00
Joshua Granick
3495825a85 Electron fix (resolve #1198) 2018-07-19 19:02:00 -07:00
Joshua Granick
026018886e Cleanup Electron support 2018-05-31 14:56:06 -07:00
Pete Shand
e45f0dd51d Add target support for Electron (#1157)
* add initial support for Electron
2018-05-31 14:18:29 -07:00