Commit 4057053b authored by antoor's avatar antoor

Add `package.json` to Config

把`package`信息添加到配置中
parent b03366fe
......@@ -42,6 +42,14 @@ class Conf {
return _;
}
/**
* 获取package.json配置信息
* @return {Object} [description]
*/
get package() {
return require('../package.json');
}
}
module.exports = new Conf();
......@@ -4,6 +4,8 @@
'use strict';
const CONF = require('./config');
class Menubar {
constructor(electron, app, mainWindow) {
......@@ -100,7 +102,8 @@ class Menubar {
}
];
// 调试菜单
if (process.env['npm_package_debug']) {
// if (process.env['npm_package_debug']) {
if (CONF['package']['debug']) {
template.push({
label: LANG['debug']['title'],
submenu: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment