1) install nodejs.
2) install Sencha.Cmd.
3) get and unzip ExtJs.
(check if you have "npm" and "sencha" commands in console)
4) create EctJs project (can be just classic).
D:\temp\work\Sencha\Cmd\sencha.exe -sdk "D:\temp\work\ext-6.2.0-gpl\" generate app -ext -classic Test002 "D:\temp\work\electron\test002\"
run and check if it's ok.
D:\temp\work\Sencha\Cmd\sencha.exe app watch
5) build ExtJs project
D:\temp\work\Sencha\Cmd\sencha.exe app build
6) goto created dir.
cd build/production/Test002
7) in that ExtJs build dir - create Electron project
need 2 modules:
npm i electron --save-dev
npm i electron-packager --save-dev
8) need 2 files from "electron-quick-start"
main.js
package.json
update package.json :
"scripts": {
...
"build": "electron-packager . ElectronExtJs --ignore=node_modules/electron*"
9) the final build
npm run build
2) install Sencha.Cmd.
3) get and unzip ExtJs.
(check if you have "npm" and "sencha" commands in console)
4) create EctJs project (can be just classic).
D:\temp\work\Sencha\Cmd\sencha.exe -sdk "D:\temp\work\ext-6.2.0-gpl\" generate app -ext -classic Test002 "D:\temp\work\electron\test002\"
:-)
run and check if it's ok.
D:\temp\work\Sencha\Cmd\sencha.exe app watch
5) build ExtJs project
D:\temp\work\Sencha\Cmd\sencha.exe app build
6) goto created dir.
cd build/production/Test002
7) in that ExtJs build dir - create Electron project
need 2 modules:
npm i electron --save-dev
npm i electron-packager --save-dev
8) need 2 files from "electron-quick-start"
main.js
package.json
update package.json :
"scripts": {
...
"build": "electron-packager . ElectronExtJs --ignore=node_modules/electron*"
9) the final build
npm run build