fix: 修复linux中so库加载的问题

This commit is contained in:
H3CoF6
2026-03-18 03:54:38 +08:00
parent be7d173746
commit f4ad6bf263
2 changed files with 5 additions and 1 deletions

View File

@@ -551,6 +551,7 @@ export class WcdbCore {
const dllDir = dirname(dllPath)
const isMac = process.platform === 'darwin'
const isLinux = process.platform === 'linux'
// 预加载依赖库
if (isMac) {
@@ -564,6 +565,8 @@ export class WcdbCore {
this.writeLog(`预加载 libWCDB.dylib 失败: ${String(e)}`)
}
}
} else if (isLinux) {
// 如果有libWCDB.so的话 没有就算了
} else {
const wcdbCorePath = join(dllDir, 'WCDB.dll')
if (existsSync(wcdbCorePath)) {