change electron build context detection, move mods package deps to main package

This commit is contained in:
Stewart Allen 2025-11-15 17:33:32 -05:00
commit 99503f5072
7 changed files with 55 additions and 51 deletions

View file

@ -2,10 +2,13 @@ const fs = require('fs-extra');
const path = require('path');
const server = require('@gridspace/app-server');
const altTmp = path.join('tmp','alt');
fs.copySync("alt", altTmp, { dereference: true });
// deref src, web, mod for windows
const srcTmp = path.join('tmp','src');
fs.copySync("src", srcTmp, { dereference: true, filter:(src) => {
return src.indexOf('web/pack') < 0;
return true || src.indexOf('src/main') < 0;
} });
const webTmp = path.join('tmp','web');