How To Compile An Electron Application To A .exe [duplicate]

You need to use Electron Packager. Install it using: # for use in npm scripts npm install electron-packager –save-dev # for use from cli npm install electron-packager -g And package or deploy using: electron-packager <sourcedir> <appname> –platform=win32 –arch=x86_64 If you would like to keep it with the Electron Installation, see Application Distribution. Update : Above … Read more

Electron.js How to minimize/close window to system tray and restore window back from tray?

I actually figured it out a long time ago but for folks who encounter the same problem here is one way you could achieve minimizing to tray and restoring from tray. The trick is to catch the close and minimize events. var BrowserWindow = require(‘browser-window’), var mainWindow = new BrowserWindow({ width: 850, height: 450, title: … Read more

electron 5.0.0 “Uncaught ReferenceError: require is not defined”

For Electron version 12 and above const electron = require(“electron”); const { app, BrowserWindow } = electron; app.on(“ready”, () => { const mainWindow = new BrowserWindow({ width: 1000, height: 600, webPreferences: { nodeIntegration: true, contextIsolation: false, enableRemoteModule: true, }, }); mainWindow.loadURL(`file://${__dirname}/index.html`); });

Node-Webkit vs Electron [closed]

Electron has a page explaining the differences with nwjs. Like NW.js, Electron provides a platform to write desktop applications with web technologies. Both platforms enable developers to utilize HTML, JavaScript, and Node.js. On the surface, they seem very similar. There are however fundamental differences between the two projects that make Electron a completely separate product … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)