add install.sh script

This commit is contained in:
sigil-03 2025-07-07 12:03:03 -06:00
parent 3023576fec
commit 24df544a03

10
install.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
BINFILE="${SCRIPT_DIR}/target/release/ent"
INSTALL_DIR="/usr/bin"
cargo build --release
echo "copying ent to ${INSTALL_DIR}"
sudo cp $BINFILE $INSTALL_DIR
echo "ent installed to ${INSTALL_DIR}"