Skip to content

Commit 0cb6268

Browse files
committed
Update CMakeLists.txt and Update build.sh
1 parent 595a853 commit 0cb6268

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ target_link_libraries(node_filerix PRIVATE
2828
)
2929

3030
install(TARGETS node_filerix
31-
DESTINATION share/filerix
31+
DESTINATION lib/node_modules/filerix
3232
)

scripts/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ echo "Bootstrapping vcpkg..."
1010
./vcpkg/bootstrap-vcpkg.sh || { echo "Failed to bootstrap vcpkg"; exit 1; }
1111

1212
echo "Installing dependencies with vcpkg..."
13-
./vcpkg/vcpkg --feature-flags=manifests install || { echo "Failed to install dependencies"; exit 1; }
13+
./vcpkg/vcpkg --feature-flags=manifests install --triplet x64-linux-release || { echo "Failed to install dependencies"; exit 1; }
1414

1515
echo "Generating build files with CMake..."
1616
mkdir build && cd build
1717
cmake .. || { echo "Failed to generate CMake build files"; exit 1; }
1818

1919
echo "Building the project..."
2020
cmake --build . --parallel || { echo "Build failed"; exit 1; }
21+
cd ..
22+
23+
echo "Removing RPATH from filerix.node..."
24+
chrpath --delete ./build/filerix.node || echo "No RPATH to remove"
2125

2226
echo "Installation and build complete!"

0 commit comments

Comments
 (0)