File tree Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 1010 "libraries" : [ "<(module_root_dir)/libchdb.so" ],
1111 "cflags!" : [ "-fno-exceptions" ],
1212 "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" ]
2914 }
3015 ]
3116}
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 1111 "install" : " npm run libchdb && npm run build" ,
1212 "test" : " node example.js" ,
1313 "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"
1516 },
1617 "author" : {
1718 "name" : " chdb" ,
You can’t perform that action at this time.
0 commit comments