26 lines
561 B
JavaScript
26 lines
561 B
JavaScript
require('update-electron-app')()
|
|
|
|
const { app, BrowserWindow } = require('electron')
|
|
|
|
if (require('electron-squirrel-startup')) return app.quit();
|
|
|
|
const createWindow = () => {
|
|
const win = new BrowserWindow({
|
|
width: 535,
|
|
height: 768,
|
|
frame: false,
|
|
resizable: false,
|
|
icon: __dirname + '/icons/512x512.png',
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
contextIsolation: false,
|
|
}
|
|
})
|
|
|
|
win.loadFile('ZplPrinter/main.html')
|
|
}
|
|
|
|
app.whenReady().then(() => {
|
|
createWindow()
|
|
})
|