how to build an electron app code example
Example 1: electron build windows exe
# for use in npm scripts
npm install electron-packager --save-dev
# for use from cli
npm install electron-packager -g
electron-packager <sourcedir> <appname> --platform=win32 --arch=x64
Example 2: call node.js file electron
myButton.onclick = function() {
require('./getuser');
};