Here Is basic build file to build executable from electron windows app.
var electronInstaller = require('electron-winstaller');
var resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: 'Your_electron_application_path',
authors: 'Author Name',
description: "Description"
});
resultPromise.then(() => console.log("Build Success!"), (e) => console.log(`No dice: ${e.message}`));