moved install script to the main folder.

This commit is contained in:
2026-05-13 12:46:55 -05:00
parent 7c94a5c933
commit a5aaf19cef
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
echo "compiling ferrisfind..."
if cargo build --release; then
echo "ferrisfind compiled successfully!"
if ldd ./target/release/hyphae_cmd | grep libtika | grep "not found"; then
echo "libtika not found in current sytem, copying from the build directory."
echo "this will need sudo privileges..."
if sudo cp ./target/release/build/extractous-*/out/libs/libtika_native.so /usr/lib64/; then
echo "library copied successfully!"
else
echo "error copying libary!"
exit
fi
fi
echo "copying binary to your path..."
echo "this will require sudo privileges"
if sudo cp ./target/release/hyphae_cmd /usr/bin; then
echo "install complete!"
else
echo "error copying binary!"
fi
else
echo "error compiling biary! make sure rust and cargo are installed and setup!"
fi