2017-03-09 12:12:28 -06:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const isDevEnv = process.env.ELECTRON_DEV ?
|
|
|
|
process.env.ELECTRON_DEV.trim().toLowerCase() === 'true' : false;
|
|
|
|
|
|
|
|
const isMac = (process.platform === 'darwin');
|
2017-11-09 03:25:54 -06:00
|
|
|
const isWindowsOS = (process.platform === 'win32');
|
2017-03-09 12:12:28 -06:00
|
|
|
|
2017-07-10 02:39:10 -05:00
|
|
|
const isNodeEnv = !!process.env.NODE_ENV;
|
|
|
|
|
2017-03-09 12:12:28 -06:00
|
|
|
module.exports = {
|
|
|
|
isDevEnv: isDevEnv,
|
2017-07-10 02:39:10 -05:00
|
|
|
isMac: isMac,
|
2017-11-09 03:25:54 -06:00
|
|
|
isWindowsOS: isWindowsOS,
|
2017-07-10 02:39:10 -05:00
|
|
|
isNodeEnv: isNodeEnv
|
2017-03-09 12:12:28 -06:00
|
|
|
};
|