Harden MVP runtime and fix packaged desktop white screen

This commit is contained in:
Ryan Lancaster
2026-03-18 13:05:14 -04:00
parent 9302a88aea
commit 4a7b3061ed
14 changed files with 359 additions and 29 deletions

17
main.js
View File

@@ -1,15 +1,2 @@
const { app, BrowserWindow } = require('electron');
const path = require('path');
app.whenReady().then(() => {
const win = new BrowserWindow({
width: 1400,
height: 900,
webPreferences: { nodeIntegration: false },
titleBarStyle: 'hiddenInset', // mac-native title bar
icon: path.join(__dirname, 'icon.png')
});
win.loadFile(path.join(__dirname, 'dist', 'index.html'));
});
app.on('window-all-closed', () => process.platform !== 'darwin' && app.quit());
// Root Electron shim: delegate to the maintained process entrypoint.
require('./frontend/electron/main.cjs');