Skip to content

Commit

Permalink
[ts] use path relative to sdk to find binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed May 29, 2024
1 parent 9a0193d commit f7d4258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lib/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { resolve } from 'node:path'
import { LPNET_SDK_DEVICEINFO, NET_SDK_DEVICE_DISCOVERY_INFO, NET_SDK_IPC_DEVICE_INFO } from './struct/index.ts'
import { type DeviceInfo, type LOG_LEVEL } from './types.ts'

const path = resolve('bin/linux/libdvrnetsdk.so')
const path = resolve(import.meta.dirname, '../../', 'bin/linux/libdvrnetsdk.so')
const lib = koffi.load(path)

type SDK = {
Expand Down

0 comments on commit f7d4258

Please sign in to comment.