diff --git a/electron/main.js b/electron/main.js index e71b9cdd9..3daea7e19 100644 --- a/electron/main.js +++ b/electron/main.js @@ -1,11 +1,13 @@ const { app, BrowserWindow, Menu, globalShortcut, shell } = require("electron"); +const debug = false; + Menu.setApplicationMenu(false); function createWindow() { const win = new BrowserWindow({ show: false, webPreferences: { - // devTools: true, + devTools: debug, }, }); @@ -13,7 +15,8 @@ function createWindow() { win.maximize(); win.loadFile("index.html"); win.show(); - // win.webContents.openDevTools(); + if(debug) + win.webContents.openDevTools(); globalShortcut.register("f5", function () { win.loadFile("index.html"); }); diff --git a/package.json b/package.json index 7bb8236b7..9f49e474e 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,6 @@ "test:watch": "jest --watch", "watch": "webpack --watch --mode production", "watch:dev": "webpack --watch --mode development", - "electron": "cp -r electron/* .package && cp index.html .package && cp main.bundle.js .package && cp dist/vendor.bundle.js .package && electron-packager .package bitburner --all --out .build --overwrite --icon .package/icon.png" + "electron": "cp -r electron/* .package && cp index.html .package && cp main.bundle.js .package && cp dist/vendor.bundle.js .package/dist && electron-packager .package bitburner --all --out .build --overwrite --icon .package/icon.png" } }