mirror of https://github.com/q191201771/lal.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
769 B
Bash
26 lines
769 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
ROOT_DIR=`pwd`
|
|
echo ${ROOT_DIR}/bin
|
|
|
|
if [ ! -d ${ROOT_DIR}/bin ]; then
|
|
mkdir bin
|
|
fi
|
|
|
|
cd ${ROOT_DIR}/app/lal && \
|
|
go build -ldflags " \
|
|
-X 'github.com/q191201771/lal/pkg/util/bininfo.GitCommitID=`git log --pretty=format:'%h' -n 1`' \
|
|
-X 'github.com/q191201771/lal/pkg/util/bininfo.BuildTime=`date +'%Y.%m.%d.%H%M%S'`' \
|
|
-X 'github.com/q191201771/lal/pkg/util/bininfo.BuildGoVersion=`go version`' \
|
|
" -o ${ROOT_DIR}/bin/lal
|
|
|
|
cd ${ROOT_DIR}/app/flvfile2es && go build -o ${ROOT_DIR}/bin/flvfile2es
|
|
|
|
cd ${ROOT_DIR}/app/flvfile2rtmppush && go build -o ${ROOT_DIR}/bin/flvfile2rtmppush
|
|
|
|
cd ${ROOT_DIR}/app/modflvfile && go build -o ${ROOT_DIR}/bin/modflvfile
|
|
|
|
cd ${ROOT_DIR}/app/rtmppull && go build -o ${ROOT_DIR}/bin/rtmppull
|