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,

View File

@@ -6,7 +6,7 @@ const os = require('os')
const HOME_DIR = os.homedir();
const BASE_PATH = '../dist/app';
const BASE_PATH = '../build/app';
const CONFIG_PATH = path.join(HOME_DIR, "/.config/newton/");
const SETTINGS_CONFIG_PATH = path.join(CONFIG_PATH, "/settings.json");
const LSP_CONFIG_PATH = path.join(BASE_PATH, "/resources/lsp-servers-config.json")

View File

@@ -35,8 +35,9 @@ const loadArgs = () => {
args = process.argv.slice(4); // remove up to --start-as ...
args.forEach((val, index, array) => {
console.log(index + ': ' + val);
console.log();
});
console.log("\n\n");
}
const loadHandlers = () => {
@@ -89,4 +90,4 @@ process.on('unhandledRejection', function(error = {}) {
if (error.stack != null) {
console.log(error.stack);
}
});
});