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 {
|
private getDllPath(): string {
|
||||||
const isMac = process.platform === 'darwin'
|
const isMac = process.platform === 'darwin'
|
||||||
const libName = isMac ? 'libwcdb_api.dylib' : 'wcdb_api.dll'
|
const isLinux = process.platform === 'linux'
|
||||||
const subDir = isMac ? 'macos' : ''
|
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
|
const envDllPath = process.env.WCDB_DLL_PATH
|
||||||
if (envDllPath && envDllPath.length > 0) {
|
if (envDllPath && envDllPath.length > 0) {
|
||||||
|
|||||||
BIN
resources/linux/libwcdb_api.so
Executable file
BIN
resources/linux/libwcdb_api.so
Executable file
Binary file not shown.
Reference in New Issue
Block a user