This commit is contained in:
2025-04-09 09:47:16 +02:00
parent 60e688810d
commit 28a7ef3a94
6 changed files with 29 additions and 10 deletions

15
build.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Change to the directory where the script is located
cd "$(dirname "$0")"
# Exit immediately if a command exits with a non-zero status
set -e
echo "Building doctree binary..."
cd doctreecmd
cargo build --release
echo "Copying doctree binary to ~/hero/bin/"
mkdir -p ~/hero/bin/
cp target/release/doctree ~/hero/bin/
echo "Build and installation complete!"