fix electron builds

This commit is contained in:
Stewart Allen 2025-07-07 22:29:45 -04:00
commit b608f7bf4c
5 changed files with 44 additions and 30 deletions

View file

@ -2,6 +2,7 @@ const { app, shell, session, BrowserWindow } = require('electron');
const path = require('path');
const server = require('@gridspace/app-server');
const pkgd = app.isPackaged;
const basDir = __dirname;
const usrDir = app.getPath("userData");
const appDir = path.join(usrDir, 'gapp');
@ -28,9 +29,9 @@ server({
data: datDir,
conf: cnfDir,
logs: logDir,
cache: path.join(basDir, "data", "cache"),
single: true,
electron: true,
pkgd,
debug
});