add install script

This commit is contained in:
程广 2023-04-06 10:38:09 +08:00
parent 7624478411
commit 9bc80a6239
2 changed files with 10 additions and 0 deletions

9
install.sh Executable file
View File

@ -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"

View File

@ -2,5 +2,6 @@
mkdir -p dist mkdir -p dist
cp build/hkstreamer dist/ cp build/hkstreamer dist/
cp -r lib dist/ cp -r lib dist/
cp install.sh dist/
cd dist cd dist
tar -cvzf hkstreamer.tar.gz . tar -cvzf hkstreamer.tar.gz .