Skip to content

Commit 9ec0710

Browse files
authored
Merge pull request #50 from oslabs-beta/staging
merge staging to master
2 parents 42ca51d + 4644b03 commit 9ec0710

File tree

8 files changed

+568
-446
lines changed

8 files changed

+568
-446
lines changed

main.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = 1;
1212
// ipcMain - Communicate asynchronously from the main process to renderer processes
1313

1414
// npm libraries
15+
// debugger
1516
const { app, BrowserWindow, TouchBar, ipcMain, dialog } = require("electron");
1617
const {
1718
default: installExtension,
@@ -145,12 +146,12 @@ const touchBar = new TouchBar([
145146
/************************
146147
******** SET isDev *****
147148
************************/
148-
149-
let isDev;
150-
// if using Spectron, run it in production
151-
process.argv.includes("--noDevServer") || process.argv.includes("TEST_MODE")
152-
? (isDev = false)
153-
: (isDev = true);
149+
// default to production mode
150+
let isDev = false;
151+
// if running webpack-server, change to development mode
152+
if (process.argv.includes("dev")) {
153+
isDev = true;
154+
}
154155

155156
/*************************
156157
******* MODE DISPLAY ****
@@ -274,9 +275,9 @@ function createWindow() {
274275
app.on("ready", () => {
275276
// createLoadingScreen();
276277
createWindow();
277-
// if (!isDev) {
278-
// autoUpdater.checkForUpdates();
279-
// }
278+
if (!isDev) {
279+
autoUpdater.checkForUpdates();
280+
}
280281
});
281282

282283
// Quit when all windows are closed.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,20 @@
141141
"extends": null,
142142
"files": [
143143
"dist/index.html",
144-
"dist/main.js",
144+
"dist/bundle.js",
145+
"dist/main.css",
145146
"dist/img/swell-bg__2JecU.png",
146147
"dist/img/Trashcan__3piXy.png",
147148
"dist/img/arrow_drop_down_white_192x192__3cp1B.png",
148149
"menu/mainMenu.js",
149150
"package.json",
150151
"main.js",
151-
"httpserver.js"
152+
"httpserver.js",
153+
"src/client/protoParser.js",
154+
"main_grpcController.js",
155+
"main_httpController.js",
156+
"SSEController.js",
157+
"preload.js"
152158
],
153159
"nodeVersion": "12.14.1",
154160
"nsis": {

0 commit comments

Comments
 (0)