Harden MVP runtime and fix packaged desktop white screen
This commit is contained in:
17
main.js
17
main.js
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user