We are happy to announce that we have just released Cordova Electron 2.0.0
! This is one of Cordova's supported platforms for building Electron applications.
To upgrade:
cordova platform remove electron cordova platform add electron@2.0.0
To install:
cordova platform add electron@2.0.0
Some of the notable breaking changes & new features in this release are:
The Electron core dependencies have been updated.
NodeJS 6 and 8 is no longer supported. This release requires the development environment to have NodeJS 10.x or higher. It is recommended to use the current LTS, which is 12.18.4
at the time of this release.
DevTool extensions can now be added to debug builds to improve debugging capabilities. GH-160
Support for using the custom scheme
and hostname
preference
flags is now available. It can be easily configured in your Cordova project by setting the preference options scheme
and hostname
in the config.xml
file.
<preference name="scheme" value="app" /> <preference name="hostname" value="localhost" />
Support passing of Electron arguments to the cordova run
command. This is useful to pass the inspect flag to debug the main process.
For a quick start guide and in-depth configuration setup, please check out our Cordova Electron Documentation!
Please report any issues you find at issues.cordova.io!
cordova-common@^4.0.2
electron@10.1.2
electron-builder@^22.8.1
electron-devtools-installer@^3.1.1
execa@^4.0.3
fs-extra@^9.0.1
electron
& electron-builder
cordova-common@4.0.1
npm
): update dependenciesnode
6 and 8 supportscheme
& hostname
BrowserWindow
create
): simplify project creationfor
template
stringsobject
shorthandarrow
functions & arrow
returnsvar
to let
/const
shelljs
and update testsshelljs
/spawn
with execa
eslint
setup@cordova/eslint-config@^3.0.0
w/ lint fixpackage.json
jasmine
dependency