File tree 3 files changed +11
-17
lines changed
3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 10
10
"libraries" : [ "<(module_root_dir)/libchdb.so" ],
11
11
"cflags!" : [ "-fno-exceptions" ],
12
12
"cflags_cc!" : [ "-fno-exceptions" ],
13
- "defines" : [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
14
- "conditions" : [
15
- ["OS=='mac'" , {
16
- "actions" : [
17
- {
18
- "action_name" : "postbuild" ,
19
- "inputs" : [],
20
- "outputs" : ["<(module_root_dir)/build/Release/postbuild_dummy" ],
21
- "action" : [
22
- "sh" , "-c" ,
23
- "install_name_tool -change libchdb.so @loader_path/../../libchdb.so <(module_root_dir)/build/Release/chdb_node.node"
24
- ]
25
- }
26
- ]
27
- }]
28
- ]
13
+ "defines" : [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
29
14
}
30
15
]
31
16
}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ cd " $( dirname " $0 " ) "
4
+
5
+ if [[ $( uname -s) == " Darwin" ]]; then
6
+ install_name_tool -change libchdb.so @loader_path/../../libchdb.so build/Release/chdb_node.node
7
+ otool -L build/Release/chdb_node.node
8
+ fi
Original file line number Diff line number Diff line change 11
11
"install" : " npm run libchdb && npm run build" ,
12
12
"test" : " node example.js" ,
13
13
"libchdb" : " ./update_libchdb.sh" ,
14
- "build" : " node-gyp configure build --verbose"
14
+ "fixloaderpath" : " ./fix_loader_path.sh" ,
15
+ "build" : " node-gyp configure build --verbose && npm run fixloaderpath"
15
16
},
16
17
"author" : {
17
18
"name" : " chdb" ,
You can’t perform that action at this time.
0 commit comments