mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
feat: 添加 Linux 平台支持,加载 libwcdb_api.so(含 sqlcipher 静态链接)
This commit is contained in:
@@ -278,8 +278,9 @@ export class WcdbCore {
|
||||
*/
|
||||
private getDllPath(): string {
|
||||
const isMac = process.platform === 'darwin'
|
||||
const libName = isMac ? 'libwcdb_api.dylib' : 'wcdb_api.dll'
|
||||
const subDir = isMac ? 'macos' : ''
|
||||
const isLinux = process.platform === 'linux'
|
||||
const libName = isMac ? 'libwcdb_api.dylib' : isLinux ? 'libwcdb_api.so' : 'wcdb_api.dll'
|
||||
const subDir = isMac ? 'macos' : isLinux ? 'linux' : ''
|
||||
|
||||
const envDllPath = process.env.WCDB_DLL_PATH
|
||||
if (envDllPath && envDllPath.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user