Adding electron-builder; fixing indent levels
This commit is contained in:
@@ -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,
|
||||
|
@@ -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")
|
||||
|
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user