-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 软件绑定引擎版本对比检查提示 * 1、引擎检查版本中,本地和最新版本强制为顺序同步执行,不再同时获取本地和最新版本 2、加入打印信息日志功能,监听启动引擎成功但未进入UI界面问题 3、删除日志文件逻辑调整,删除老文件的同时,也将无信息的文件同时删除 * 修复测试小问题 * 加入命令运行引擎脚本功能
- Loading branch information
Showing
21 changed files
with
355 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,38 @@ | ||
const {ipcMain} = require("electron") | ||
const fs = require("fs") | ||
const path = require("path") | ||
const {renderLog} = require("./filePath") | ||
const {renderLog, printLog} = require("./filePath") | ||
const {getNowTime} = require("./toolsFunc") | ||
|
||
/** 引擎错误日志 */ | ||
const logPath = path.join(renderLog, `render-log-${getNowTime()}.txt`) | ||
let writeStream = fs.createWriteStream(logPath, {flags: "a"}) | ||
const renderLogPath = path.join(renderLog, `render-log-${getNowTime()}.txt`) | ||
let renderWriteStream = fs.createWriteStream(renderLogPath, {flags: "a"}) | ||
|
||
/** 引擎错误日志 */ | ||
const printLogPath = path.join(printLog, `print-log-${getNowTime()}.txt`) | ||
let printWriteStream = fs.createWriteStream(printLogPath, {flags: "a"}) | ||
|
||
module.exports = (win, getClient) => { | ||
/** 渲染端错误信息收集 */ | ||
ipcMain.handle("render-error-log", (e, error) => { | ||
const content = error || "" | ||
if (content) { | ||
writeStream.write(content, (err) => { | ||
renderWriteStream.write(`${content}\n`, (err) => { | ||
if (err) { | ||
console.error("render-error-log-write-error:", err) | ||
} | ||
}) | ||
} | ||
}) | ||
|
||
/** 可疑问题的打印信息收集 */ | ||
ipcMain.handle("print-info-log", (e, info) => { | ||
if (info) { | ||
printWriteStream.write(`${info}\n`, (err) => { | ||
if (err) { | ||
console.error("print-error-log-write-error:", err) | ||
} | ||
}) | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...renderer/src/main/src/components/layout/CheckEngineVersion/CheckEngineVersion.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.check-engine-version-checkbox { | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
} |
Oops, something went wrong.