electron quickstart guide
const { app, BrowserWindow } = require('electron')
function createWindow () {
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
})
win.loadFile('index.html')
win.webContents.openDevTools()
}
app.whenReady().then(createWindow)
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})mkdir my-electron-app && cd my-electron-app
npm init -y
npm i --save-dev electron
Also in C++:
- conda install git
- how to set up git user
- how to delete a file using powershell
- shell_to_meterpreter
- pm2 stop process
- install react-native-vector-icons/ionicons
- laravel/sail
- rename file command line windows
- install php 7.4 nginx ubuntu
- ubuntu install certbot
- anconda install django
- github claims I have a large file that
- ubuntu search for command used
- powershell which equivalent
- shell script variables not working
- windows add to path
- git revert all commits to pervious commit
- bash change text in specific column
- redis show all keys
- conda install pytorch
- Django for Beginners
- Maatwebsite\Excel\ install laravel
- linux command if directory exists
- brew install wine