|
@@ -41,7 +41,7 @@ module.exports = (appInfo) => {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* ee框架日志
|
|
* ee框架日志
|
|
|
- */
|
|
|
|
|
|
|
+ */
|
|
|
config.logger = {
|
|
config.logger = {
|
|
|
encoding: 'utf8',
|
|
encoding: 'utf8',
|
|
|
level: 'INFO',
|
|
level: 'INFO',
|
|
@@ -51,12 +51,12 @@ module.exports = (appInfo) => {
|
|
|
rotator: 'day',
|
|
rotator: 'day',
|
|
|
appLogName: 'ee.log',
|
|
appLogName: 'ee.log',
|
|
|
coreLogName: 'ee-core.log',
|
|
coreLogName: 'ee-core.log',
|
|
|
- errorLogName: 'ee-error.log'
|
|
|
|
|
|
|
+ errorLogName: 'ee-error.log'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 远程模式-web地址
|
|
* 远程模式-web地址
|
|
|
- */
|
|
|
|
|
|
|
+ */
|
|
|
config.remoteUrl = {
|
|
config.remoteUrl = {
|
|
|
enable: false,
|
|
enable: false,
|
|
|
url: 'http://electron-egg.kaka996.com/'
|
|
url: 'http://electron-egg.kaka996.com/'
|
|
@@ -64,7 +64,7 @@ module.exports = (appInfo) => {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 内置socket服务
|
|
* 内置socket服务
|
|
|
- */
|
|
|
|
|
|
|
+ */
|
|
|
config.socketServer = {
|
|
config.socketServer = {
|
|
|
enable: false,
|
|
enable: false,
|
|
|
port: 7070,
|
|
port: 7070,
|
|
@@ -82,11 +82,11 @@ module.exports = (appInfo) => {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 内置http服务
|
|
* 内置http服务
|
|
|
- */
|
|
|
|
|
|
|
+ */
|
|
|
config.httpServer = {
|
|
config.httpServer = {
|
|
|
enable: false,
|
|
enable: false,
|
|
|
https: {
|
|
https: {
|
|
|
- enable: false,
|
|
|
|
|
|
|
+ enable: false,
|
|
|
key: '/public/ssl/localhost+1.key',
|
|
key: '/public/ssl/localhost+1.key',
|
|
|
cert: '/public/ssl/localhost+1.pem'
|
|
cert: '/public/ssl/localhost+1.pem'
|
|
|
},
|
|
},
|
|
@@ -102,7 +102,7 @@ module.exports = (appInfo) => {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
filterRequest: {
|
|
filterRequest: {
|
|
|
- uris: [
|
|
|
|
|
|
|
+ uris: [
|
|
|
'favicon.ico'
|
|
'favicon.ico'
|
|
|
],
|
|
],
|
|
|
returnData: ''
|
|
returnData: ''
|
|
@@ -111,11 +111,11 @@ module.exports = (appInfo) => {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 主进程
|
|
* 主进程
|
|
|
- */
|
|
|
|
|
|
|
+ */
|
|
|
config.mainServer = {
|
|
config.mainServer = {
|
|
|
protocol: 'file://',
|
|
protocol: 'file://',
|
|
|
indexPath: '/public/dist/index.html',
|
|
indexPath: '/public/dist/index.html',
|
|
|
- };
|
|
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 硬件加速
|
|
* 硬件加速
|
|
@@ -138,7 +138,7 @@ module.exports = (appInfo) => {
|
|
|
*/
|
|
*/
|
|
|
config.jobs = {
|
|
config.jobs = {
|
|
|
messageLog: true
|
|
messageLog: true
|
|
|
- };
|
|
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 插件功能
|
|
* 插件功能
|
|
@@ -162,18 +162,30 @@ module.exports = (appInfo) => {
|
|
|
},
|
|
},
|
|
|
autoUpdater: {
|
|
autoUpdater: {
|
|
|
enable: true,
|
|
enable: true,
|
|
|
- windows: false,
|
|
|
|
|
- macOS: false,
|
|
|
|
|
|
|
+ windows: false,
|
|
|
|
|
+ macOS: false,
|
|
|
linux: false,
|
|
linux: false,
|
|
|
options: {
|
|
options: {
|
|
|
- provider: 'generic',
|
|
|
|
|
|
|
+ provider: 'generic',
|
|
|
url: 'http://kodo.qiniu.com/'
|
|
url: 'http://kodo.qiniu.com/'
|
|
|
},
|
|
},
|
|
|
force: false,
|
|
force: false,
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
|
|
+ config.cross = {
|
|
|
|
|
+ python: {
|
|
|
|
|
+ enable: false,
|
|
|
|
|
+ // 程序名
|
|
|
|
|
+ name: "pyapp",
|
|
|
|
|
+ // 可执行程序路径
|
|
|
|
|
+ cmd: "./py/pyapp",
|
|
|
|
|
+ // 可执行程序目录
|
|
|
|
|
+ directory: "./py",
|
|
|
|
|
+ args: ["--port=7074"],
|
|
|
|
|
+ appExit: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ };
|
|
|
return {
|
|
return {
|
|
|
...config
|
|
...config
|
|
|
};
|
|
};
|
|
|
-}
|
|
|
|
|
|
|
+}
|