Last active
March 12, 2018 04:03
-
-
Save zonayedpca/3298906838c3d32e714577b692335a25 to your computer and use it in GitHub Desktop.
Make a Basic Electron Cross Platform Desktop App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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