加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_osx_amd64.sh 5.06 KB
一键复制 编辑 原始数据 按行查看 历史
svaroqui 提交于 2019-11-23 12:48 . Disk plugin alerts
#!/usr/bin/env sh
# These are the values we want to pass for VERSION and BUILD
# git tag 1.0.1
# git commit -am "One more change after the tags"
VERSION=$(git describe --abbrev=0 --tags)
FULLVERSION=$(git describe --tags)
BUILD=$(date +%FT%T%z)
BINARY=replication-manager-osc
env GOOS=darwin GOARCH=amd64 go build -a --tags "netcgo server" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=OFF -X main.WithHaproxy=ON -X main.WithMaxscale=ON -X main.WithMariadbshardproxy=ON -X main.WithProxysql=ON -X main.WithSphinx=ON -X main.WithSphinx=ON -X main.WithArbitration=OFF -X main.WithArbitrationClient=ON -X main.WithMonitoring=ON -X main.WithHttp=ON -X main.WithBackup=ON -X main.WithMail=ON -X main.WithEnforce=ON -X main.WithDeprecate=OFF" ${LDFLAGS} -o ${BINARY}
#BINARY=replication-manager-tst
#env GOOS=darwin GOARCH=amd64 go build -a --tags "netgo server" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=ON -X main.WithHaproxy=ON -X main.WithMaxscale=ON -X main.WithMariadbshardproxy=ON -X main.WithProxysql=ON -X main.WithSphinx=ON -X main.WithArbitration=OFF -X main.WithArbitrationClient=ON -X main.WithMonitoring=ON -X main.WithHttp=ON -X main.WithBackup=ON -X main.WithMail=ON -X main.WithEnforce=ON -X main.WithDeprecate=OFF" ${LDFLAGS} -o ${BINARY}
BINARY=replication-manager-pro
env GOOS=darwin GOARCH=amd64 go build -a --tags "netgo server" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=ON -X main.WithOpenSVC=ON -X main.WithHaproxy=ON -X main.WithMaxscale=ON -X main.WithMariadbshardproxy=ON -X main.WithProxysql=ON -X main.WithSphinx=ON -X main.WithArbitration=OFF -X main.WithArbitrationClient=ON -X main.WithMonitoring=ON -X main.WithHttp=ON -X main.WithBackup=ON -X main.WithMail=ON -X main.WithEnforce=ON -X main.WithDeprecate=OFF" ${LDFLAGS} -o ${BINARY}
BINARY=replication-manager-cli
env GOOS=darwin GOARCH=amd64 go build -a --tags "netgo clients" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=ON -X main.WithOpenSVC=ON -X main.WithHaproxy=ON -X main.WithMaxscale=ON -X main.WithMariadbshardproxy=ON -X main.WithProxysql=ON -X main.WithSphinx=ON -X main.WithArbitration=OFF -X main.WithArbitrationClient=OFF -X main.WithMonitoring=ON -X main.WithHttp=ON -X main.WithBackup=ON -X main.WithMail=ON -X main.WithEnforce=ON -X main.WithDeprecate=ON" ${LDFLAGS} -o ${BINARY}
BINARY=replication-manager-arbitrator
env GOOS=darwin GOARCH=amd64 go build -a --tags "netgo arbitrator" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=ON -X main.WithOpenSVC=ON -X main.WithHaproxy=ON -X main.WithMaxscale=ON -X main.WithMariadbshardproxy=ON -X main.WithProxysql=ON -X main.WithSphinx=ON -X main.WithArbitration=ON -X main.WithArbitration=OFF -X main.WithMonitoring=ON -X main.WithHttp=ON -X main.WithBackup=ON -X main.WithMail=ON -X main.WithEnforce=ON -X main.WithDeprecate=ON" ${LDFLAGS} -o ${BINARY}
#BINARY=replication-manager-min
#env GOOS=darwin GOARCH=amd64 go build -a --tags "netgo server" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=OFF -X main.WithOpenSVC=OFF -X main.WithHaproxy=OFF -X main.WithMaxscale=OFF -X main.WithMariadbshardproxy=OFF -X main.WithProxysql=OFF -X main.WithArbitration=OFF -X main.WithArbitrationClient=OFF -X main.WithMonitoring=OFF -X main.WithHttp=OFF -X main.WithMail=ON -X main.WithEnforce=OFF -X main.WithDeprecate=OFF" ${LDFLAGS} -o ${BINARY}
#BINARY=mrm-test
#env GOOS=darwin GOARCH=amd64 go build -a --tags "netgo server" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=ON -X main.WithOpenSVC=ON -X main.WithHaproxy=OFF -X main.WithMaxscale=OFF -X main.WithMariadbshardproxy=OFF -X main.WithProxysql=OFF -X main.WithArbitration=OFF -X main.WithMonitoring=OFF -X main.WithHttp=OFF -X main.WithMail=ON -X main.WithEnforce=OFF -X main.WithDeprecate=OFF" ${LDFLAGS} -o ${BINARY}
#BINARY=mrm-cli
#env GOOS=darwin GOARCH=amd64 go build -a --tags "netgo clients" --ldflags "-w -s -X main.GoOS=darwin -X main.GoArch=amd64 -X main.Version=${VERSION} -X main.FullVersion=${FULLVERSION} -X main.Build=${BUILD} -X main.WithProvisioning=OFF -X main.WithOpenSVC=OFF -X main.WithHaproxy=OFF -X main.WithMaxscale=OFF -X main.WithMariadbshardproxy=OFF -X main.WithProxysql=OFF -X main.WithArbitration=OFF -X main.WithMonitoring=OFF -X main.WithHttp=OFF -X main.WithMail=ON -X main.WithEnforce=OFF -X main.WithDeprecate=OFF" ${LDFLAGS} -o ${BINARY}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化