feat(应用程序): 更新后端服务目录
This commit is contained in:
parent
1e93b1a4ed
commit
259baf06dc
|
@ -98,9 +98,9 @@ nsis:
|
||||||
!insertmacro MUI_LANGUAGE "Vietnamese"
|
!insertmacro MUI_LANGUAGE "Vietnamese"
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
|
!include "C:\Users\Administrator\AppData\Local\Temp\t-WjTuHM\0-messages.nsh"
|
||||||
|
!include "C:\Users\Administrator\AppData\Local\Temp\t-WjTuHM\1-messages.nsh"
|
||||||
!addplugindir /x86-unicode "C:\Users\Administrator\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.4.1\plugins\x86-unicode"
|
!addplugindir /x86-unicode "C:\Users\Administrator\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.4.1\plugins\x86-unicode"
|
||||||
!include "C:\Users\Administrator\AppData\Local\Temp\t-5mIwn8\0-messages.nsh"
|
|
||||||
!include "C:\Users\Administrator\AppData\Local\Temp\t-5mIwn8\1-messages.nsh"
|
|
||||||
|
|
||||||
Var newStartMenuLink
|
Var newStartMenuLink
|
||||||
Var oldStartMenuLink
|
Var oldStartMenuLink
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
files:
|
files:
|
||||||
- url: 谷云工具-1.0.0-setup.exe
|
- url: 谷云工具-1.0.0-setup.exe
|
||||||
sha512: 1aL/ryIrS8KCW3sDeuBFsMe62PPBXepWhL1voLPJ1RvIwnZOKIlr2QtutorUmWiT7SxmmD27iuSQm5BWOnqphg==
|
sha512: aLMttpf8qtdHfcnHtMAZ+AejVqxSvQHoYEMMhXLkAW27tb769nRg/YsSWwhyI4OBcf0imGk93YeNAvdXwPLevA==
|
||||||
size: 106215154
|
size: 106184813
|
||||||
path: 谷云工具-1.0.0-setup.exe
|
path: 谷云工具-1.0.0-setup.exe
|
||||||
sha512: 1aL/ryIrS8KCW3sDeuBFsMe62PPBXepWhL1voLPJ1RvIwnZOKIlr2QtutorUmWiT7SxmmD27iuSQm5BWOnqphg==
|
sha512: aLMttpf8qtdHfcnHtMAZ+AejVqxSvQHoYEMMhXLkAW27tb769nRg/YsSWwhyI4OBcf0imGk93YeNAvdXwPLevA==
|
||||||
releaseDate: '2024-07-12T08:13:19.231Z'
|
releaseDate: '2024-07-15T05:58:17.230Z'
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,3 +0,0 @@
|
||||||
张三
|
|
||||||
|
|
||||||
Written from plugin-test-grpc
|
|
|
@ -98,11 +98,12 @@ if (!gotTheLock) {
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
const logStream = fs.createWriteStream('app.log', { flags: 'a' }) // 日志文件
|
const logStream = fs.createWriteStream('app.log', { flags: 'a' }) // 日志文件
|
||||||
let exePath = path.resolve('./resources/app.asar.unpacked/resources/plugin-test')
|
let exePath = path.resolve('./resources/app.asar.unpacked/resources/service')
|
||||||
let exePluginsPath = path.resolve('./resources/app.asar.unpacked/resources/plugin-test/plugins')
|
let exePluginsPath = path.resolve('./resources/app.asar.unpacked/resources/service/plugins')
|
||||||
|
//单独配置测试环境
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
exePath = path.resolve('./resources/plugin-test')
|
exePath = path.resolve('./resources/service')
|
||||||
exePluginsPath = path.resolve('./resources/plugin-test/plugins')
|
exePluginsPath = path.resolve('./resources/service/plugins')
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询所有插件目录下的exe文件
|
//查询所有插件目录下的exe文件
|
||||||
|
@ -116,6 +117,7 @@ if (!gotTheLock) {
|
||||||
|
|
||||||
child = spawn('./main.exe', [], { cwd: exePath, stdio: ['ignore', 'pipe', 'pipe'] })
|
child = spawn('./main.exe', [], { cwd: exePath, stdio: ['ignore', 'pipe', 'pipe'] })
|
||||||
|
|
||||||
|
//监听进程的输出
|
||||||
child.stdout.on('data', (data) => {
|
child.stdout.on('data', (data) => {
|
||||||
console.log('stdout:', data.toString())
|
console.log('stdout:', data.toString())
|
||||||
logStream.write(data)
|
logStream.write(data)
|
||||||
|
|
Loading…
Reference in New Issue