From 9bc80a62394ff9729b1614c8ace787de4e124cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=B9=BF?= Date: Thu, 6 Apr 2023 10:38:09 +0800 Subject: [PATCH] add install script --- install.sh | 9 +++++++++ pack.sh | 1 + 2 files changed, 10 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..c0b2b99 --- /dev/null +++ b/install.sh @@ -0,0 +1,9 @@ +#!/bin/bash +InstallDir=$(cd `dirname $0`; pwd) +ProfileFile=~/.profile + +echo "export LD_LIBRARY_PATH=$InstallDir/lib:$InstallDir/lib/HCNetSDKCom:\$LD_LIBRARY_PATH">>$ProfileFile +echo "export PATH=\$PATH:$InstallDir">>$ProfileFile +source $ProfileFile +echo "Install complete" +echo "Remeber to run source $ProfileFile" \ No newline at end of file diff --git a/pack.sh b/pack.sh index 45b85e3..eb549e0 100755 --- a/pack.sh +++ b/pack.sh @@ -2,5 +2,6 @@ mkdir -p dist cp build/hkstreamer dist/ cp -r lib dist/ +cp install.sh dist/ cd dist tar -cvzf hkstreamer.tar.gz . \ No newline at end of file