add script

This commit is contained in:
程广 2023-04-06 09:51:58 +08:00
parent 43273652a0
commit 7624478411
5 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.qtc_clangd .qtc_clangd
build build
dist

2
build-docker.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker run --rm -v `pwd`:/apps -w /apps danger89/cmake:latest ./build.sh

4
build.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cmake -S . -B build
cd build
cmake --build .

6
pack.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
mkdir -p dist
cp build/hkstreamer dist/
cp -r lib dist/
cd dist
tar -cvzf hkstreamer.tar.gz .

View File

@ -139,7 +139,7 @@ int _readChannelConfig(long lUserID,LPStream stream){
if(checkResult(!resCode, "read channel config fail")){ if(checkResult(!resCode, "read channel config fail")){
return HPR_ERROR; return HPR_ERROR;
} }
int startNum = ipcfg.dwStartDChan;
if(checkResult(stream->lChannel > ipcfg.dwDChanNum, "channel not correct")){ if(checkResult(stream->lChannel > ipcfg.dwDChanNum, "channel not correct")){
return HPR_ERROR; return HPR_ERROR;
} }