feat: 添加 Linux 平台支持,加载 libwcdb_api.so(含 sqlcipher 静态链接)
This commit is contained in:
1 parent
774ac7f2fa
commit
61eef27740
2 files changed
+3
-2
No files matched your search
@@ -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) {
|
||||
|
||||
Executable
BIN
Binary file not shown.
Reference in new issue
Block a user