Skip to content

Instantly share code, notes, and snippets.

@zonayedpca
Last active March 12, 2018 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zonayedpca/3298906838c3d32e714577b692335a25 to your computer and use it in GitHub Desktop.
Save zonayedpca/3298906838c3d32e714577b692335a25 to your computer and use it in GitHub Desktop.
Make a Basic Electron Cross Platform Desktop App
const {app} = require('electron'),
{BrowserWindow} = require('electron');
app.on('ready', () => {
//Your main code will be here
const mainWindow = new BrowserWindow({
width: 800,
height: 600
});
//Load the content
mainWindow.loadURL(`file://${__dirname}/public/index.html`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment