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.
15 lines
414 B
Bash
15 lines
414 B
Bash
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -x
|
||
|
|
||
|
if [ ! -d "bin" ]; then
|
||
|
mkdir bin
|
||
|
fi
|
||
|
|
||
|
cd app/lal && \
|
||
|
GOOS=linux GOARCH=amd64 go build -ldflags " \
|
||
|
-X 'github.com/q191201771/lal/pkg/bininfo.BuildTime=`date +'%Y.%m.%d.%H%M%S'`' \
|
||
|
-X 'github.com/q191201771/lal/pkg/bininfo.GitCommitID=`git log --pretty=format:'%h' -n 1`' \
|
||
|
-X 'github.com/q191201771/lal/pkg/bininfo.GoVersion=`go version`' \
|
||
|
" -o ../../bin/lal_linux
|