chessnt/index.js

20 lines
396 B
JavaScript
Raw Normal View History

2022-05-09 17:58:25 +02:00
const { app, BrowserWindow } = require('electron')
const path = require('path')
const createWindow = () => {
const win = new BrowserWindow({
2022-05-11 15:31:14 +02:00
2022-05-09 17:58:25 +02:00
autoHideMenuBar: true,
icon: __dirname + '/icon.png',
frame: false
})
2022-05-11 15:31:14 +02:00
win.maximize()
2022-05-09 17:58:25 +02:00
win.loadFile('index.html')
}
app.whenReady().then(() => {
createWindow()
2022-05-11 15:31:14 +02:00
})
//npm exec electron-packager .