Commit Graph

21 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
Rainy
6ee94bcf60 Compatible with electron version 11.
Compatible with electron version 11.
2021-01-04 11:55:39 -08:00
dependabot[bot]
93eddd1f3d Bump electron from 1.8.8 to 9.1.0 in /templates/electron/template
Bumps [electron](https://github.com/electron/electron) from 1.8.8 to 9.1.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v1.8.8...v9.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-19 20:42:40 -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
Joshua Granick
5eb13042d9 Template fix 2019-02-14 09:09:39 -08:00
Joshua Granick
0c163a80e7 Use formatter for all Haxe code 2019-02-14 08:41:20 -08:00
Thomas Byrne
e7ec14795e NPM package.json name property can't have non-URL safe characters, so it's more suited to using the 'packageName' than the 'title'.
This also helps when using tools like electron-packager, which use the package name as a folder name.

Spec:
https://docs.npmjs.com/files/package.json
2019-01-17 00:12:09 -08:00
70/V9
992f7b70d1 Use electron.main.App.commandLine type
`electron.main.App.commandLine` is now defined in electron externs, no need for untyped workaround anymore.
2018-11-24 12:53:04 -08:00
P.J.Shand
5bbfd42f59 --autoplay-policy, no-user-gesture-required flags to allow video and audio to play without user input 2018-11-12 11:42:12 -08:00
Thomas Byrne
e2cf19e14c Added compiler flag to prevent auto-opening of DevTools (-D suppress_devtools). 2018-11-01 16:50:29 -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
Joshua Granick
381f18a791 Electron tweak 2018-08-08 11:36:39 -07:00
Joshua Granick
e68e705e58 Compile fix 2018-08-06 15:52:05 -07:00
Joshua Granick
9bbfd40f8b Force enable WebGL on Electron/Linux 2018-08-06 14:47:07 -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