From 24df544a035192f0fac1bf6adeb95479993ebc3e Mon Sep 17 00:00:00 2001 From: sigil-03 Date: Mon, 7 Jul 2025 12:03:03 -0600 Subject: [PATCH 1/2] add install.sh script --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..9a459a3 --- /dev/null +++ b/install.sh @@ -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}" -- 2.47.3 From 15f0ce57d588206cca14cc65c8b54ae4992220ae Mon Sep 17 00:00:00 2001 From: sigil-03 Date: Mon, 7 Jul 2025 12:40:03 -0600 Subject: [PATCH 2/2] install.sh: use /usr/local/bin not /usr/bin --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9a459a3..ba8faf0 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) BINFILE="${SCRIPT_DIR}/target/release/ent" -INSTALL_DIR="/usr/bin" +INSTALL_DIR="/usr/local/bin" cargo build --release echo "copying ent to ${INSTALL_DIR}" -- 2.47.3