1
0
forked from x/ContextOS
This commit is contained in:
shaoying 2020-10-21 09:01:16 +08:00
parent 67f57b20ab
commit 4e1092be0c
3 changed files with 2 additions and 18 deletions

View File

@ -1,8 +1,7 @@
export GOPROXY=https://goproxy.cn
export GOPRIVATE=github.com
# export CGO_ENABLED=0
export CGO_ENABLED=0
meta_info = "-X main.Time=`date +"%Y-%m-%d_%H:%M:%S"` -X main.Version=`git describe --tags` -X main.HostName=`hostname` -X main.UserName=`whoami`"
all:
@echo && date
go build -ldflags $(meta_info) -v -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart
go build -v -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart

View File

@ -36,18 +36,4 @@ import (
_ "github.com/shylinux/mysql-story/src/server"
)
var (
Time string
Version string
HostName string
UserName string
)
func init() {
ice.Info.Build.Time = Time
ice.Info.Build.Version = Version
ice.Info.Build.HostName = HostName
ice.Info.Build.UserName = UserName
}
func main() { print(ice.Run()) }

View File

@ -92,4 +92,3 @@ table `
阿里 Amazon
`
source hi/hi.shy