mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
fix: make: command: Command not found (#4132)
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
057bae92ab
commit
7c730b97d8
@ -1,18 +1,18 @@
|
|||||||
build:
|
build:
|
||||||
go build -ldflags="-s -w" goctl.go
|
go build -ldflags="-s -w" goctl.go
|
||||||
$(if $(shell command -v upx), upx goctl)
|
$(if $(shell command -v upx || which upx), upx goctl)
|
||||||
|
|
||||||
mac:
|
mac:
|
||||||
GOOS=darwin go build -ldflags="-s -w" -o goctl-darwin goctl.go
|
GOOS=darwin go build -ldflags="-s -w" -o goctl-darwin goctl.go
|
||||||
$(if $(shell command -v upx), upx goctl-darwin)
|
$(if $(shell command -v upx || which upx), upx goctl-darwin)
|
||||||
|
|
||||||
win:
|
win:
|
||||||
GOOS=windows go build -ldflags="-s -w" -o goctl.exe goctl.go
|
GOOS=windows go build -ldflags="-s -w" -o goctl.exe goctl.go
|
||||||
$(if $(shell command -v upx), upx goctl.exe)
|
$(if $(shell command -v upx || which upx), upx goctl.exe)
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
GOOS=linux go build -ldflags="-s -w" -o goctl-linux goctl.go
|
GOOS=linux go build -ldflags="-s -w" -o goctl-linux goctl.go
|
||||||
$(if $(shell command -v upx), upx goctl-linux)
|
$(if $(shell command -v upx || which upx), upx goctl-linux)
|
||||||
|
|
||||||
image:
|
image:
|
||||||
docker build --rm --platform linux/amd64 -t kevinwan/goctl:$(version) .
|
docker build --rm --platform linux/amd64 -t kevinwan/goctl:$(version) .
|
||||||
|
Loading…
Reference in New Issue
Block a user