add script
This commit is contained in:
parent
43273652a0
commit
7624478411
|
@ -1,2 +1,3 @@
|
||||||
.qtc_clangd
|
.qtc_clangd
|
||||||
build
|
build
|
||||||
|
dist
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
docker run --rm -v `pwd`:/apps -w /apps danger89/cmake:latest ./build.sh
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cmake -S . -B build
|
||||||
|
cd build
|
||||||
|
cmake --build .
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
mkdir -p dist
|
||||||
|
cp build/hkstreamer dist/
|
||||||
|
cp -r lib dist/
|
||||||
|
cd dist
|
||||||
|
tar -cvzf hkstreamer.tar.gz .
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue