Commit d5cdf1a3 authored by wei.xuan's avatar wei.xuan

fix:fix build

parent df42345c
Pipeline #2447 failed with stages
dist/
.idea
echo-cli
\ No newline at end of file
echo-cli
majora-cli
\ No newline at end of file
build:
flags="-w -s -X majora.BuildDate=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X majora.Version=`git describe --long --dirty --abbrev=14`"
go build -ldflags "$flags" -o majora-cli
go build -ldflags '-w -s' -o majora-cli
release:
goreleaser build --rm-dist --snapshot --single-target
......@@ -12,4 +11,4 @@ releaseall:
clean:
rm -fr dist
rm -fr echo-cli
\ No newline at end of file
rm -fr majora-cli
\ No newline at end of file
......@@ -4,3 +4,8 @@
make build
```
# 运行
```
./majora-cli -natServer "127.0.0.1:5879"
```
\ No newline at end of file
File deleted
......@@ -40,7 +40,7 @@ func initPprof() {
func main() {
InitLogger(logLevel)
initPprof()
logger.Info().Msgf("build in %s, version %s", BuildDate, Version)
//logger.Info().Msgf("build in %s, version %s", BuildDate, Version)
NewClient(WithNatServerAddr(natServer)).StartUp()
select {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment