From c7fb58cefd117b2a866854073acefe5c92064c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Wei=C3=9F?= Date: Sun, 24 Jun 2018 13:38:35 +0200 Subject: [PATCH] Finalize debug messages --- app/main/src/main.ts | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/main/src/main.ts b/app/main/src/main.ts index e470635..5e474cb 100644 --- a/app/main/src/main.ts +++ b/app/main/src/main.ts @@ -38,7 +38,7 @@ function createWindow() { mainWindow.loadURL(`file://${__dirname}/../renderer/index.html`); // Open the DevTools. - if (process.env.ELECTRON_DEV) { + if (process.env.ELECTRON_DEV) { mainWindow.webContents.openDevTools(); } @@ -65,8 +65,10 @@ function createWindow() { app.on('ready', () => { electronLog.transports.file.level = 'debug'; + + electronLog.info('(Main) - ====== Application Start =====') + createWindow(); - if (process.env.ELECTRON_DEV) { const { default: installExtension, diff --git a/package.json b/package.json index 13691f9..40cab1a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dist:win": "build -w --x64", "dist:lin": "build -l", "postinstall": "install-app-deps", - "release": "electron-builder -ml", + "release": " yarn build && electron-builder -ml", "start": "cross-env ELECTRON_DEV=true electron app/build/main.js", "test": "mocha", "tsc:watch": "tsc --watch --p tsconfig.json --declaration --target es5"