优化一些bug
This commit is contained in:
@@ -83,6 +83,10 @@ export function setupNativeWorkingDir(): void {
|
||||
}
|
||||
ensureBundledConfig(nativeDir)
|
||||
deployRuntimeConfigs(nativeDir)
|
||||
process.chdir(nativeDir)
|
||||
log.debug(`Native working directory: ${nativeDir}`)
|
||||
const execDir = getProcessExecDir()
|
||||
const pathHead = [nativeDir, execDir].join(path.delimiter)
|
||||
if (!process.env.PATH?.toLowerCase().includes(nativeDir.toLowerCase())) {
|
||||
process.env.PATH = `${pathHead}${path.delimiter}${process.env.PATH || ''}`
|
||||
}
|
||||
log.debug(`Native DLL search path: ${nativeDir}; cwd kept at ${process.cwd()}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user