Adding electron-builder; fixing indent levels

This commit is contained in:
2025-06-08 15:09:51 -05:00
parent 5b62163c4e
commit b11e8bb74a
10 changed files with 90 additions and 63 deletions

View File

@@ -6,7 +6,7 @@ const { settingsManager } = require('./settings-manager');
const { newtonFs } = require('./fs');
const BASE_PATH = '../dist/app';
const BASE_PATH = '../build/app';
const ICON_PATH = `${BASE_PATH}/resources/newton.png`;
let args = [];
@@ -31,6 +31,7 @@ const createWindow = (startType = "build", debug = false, args = []) => {
icon: settingsManager.getIconPath(),
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: false,
contextIsolation: true,
enableRemoteModule: false,
plugins: true,