budibase/packages/server/electron.js

11 lines
281 B
JavaScript
Raw Normal View History

2020-05-07 14:33:25 +02:00
const { app, BrowserWindow } = require('electron');
require("dotenv").config()
function createWindow() {
app.server = require("./app")();
let win = new BrowserWindow({ width: 1920, height: 1080 });
win.loadURL('http://localhost:4001');
}
app.whenReady().then(createWindow)