ELECTRON-907: add more info menu item

- add a new menu item that displays version information about the app
- bump up the version number
This commit is contained in:
Vishwas Shashidhar
2018-11-28 16:42:46 -08:00
parent 7e8814f862
commit afdaa39836
13 changed files with 249 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ const { version, clientVersion, buildNumber } = require('../package.json');
const log = require('./log.js');
const logLevels = require('./enums/logLevels.js');
log.send(logLevels.INFO, `-----------------Starting the app-----------------`);
log.send(logLevels.INFO, `-----------------Starting the app with version ${version}-----------------`);
// Local Dependencies
require('./stats');
@@ -28,12 +28,6 @@ const compareSemVersions = require('./utils/compareSemVersions.js');
const { isMac, isDevEnv } = require('./utils/misc.js');
const getCmdLineArg = require('./utils/getCmdLineArg.js');
const symDebug = getCmdLineArg(process.argv, '--sym-debug', true) || isDevEnv;
if (symDebug) {
log.send(logLevels.INFO, `-----------------DEBUG MODE-----------------`);
process.env.ELECTRON_ENABLE_LOGGING = true;
}
//setting the env path child_process issue https://github.com/electron/electron/issues/7688
shellPath()
.then((path) => {
@@ -471,4 +465,4 @@ const handlePowerEvents = () => {
log.send(logLevels.INFO, `Power Monitor Event Occurred: ${appEvent}`)
});
});
}
};