Merge pull request 'Add Simple Install Script' (#4) from 03/install-script into main
Reviewed-on: #4
This commit is contained in:
commit
4d4d0d336b
1 changed files with 10 additions and 0 deletions
10
install.sh
Executable file
10
install.sh
Executable 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/local/bin"
|
||||||
|
|
||||||
|
cargo build --release
|
||||||
|
echo "copying ent to ${INSTALL_DIR}"
|
||||||
|
sudo cp $BINFILE $INSTALL_DIR
|
||||||
|
echo "ent installed to ${INSTALL_DIR}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue