budibase/packages/server/src/electron.js

13 lines
307 B
JavaScript
Raw Normal View History

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