Skip to content

Commit 9ce548c

Browse files
committed
perf: change install
1 parent 581b6ed commit 9ce548c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

go-client/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ LDFLAGS=-w -s
99

1010
CLIENTBUILD=CGO_ENABLED=0 go build -trimpath
1111

12-
# 自动检测当前平台
13-
CURRENT_OS := $(shell go env GOOS)
14-
CURRENT_ARCH := $(shell go env GOARCH)
12+
# 自动检测当前平台 - 使用 shell 命令,不依赖 Go 环境
13+
CURRENT_OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
14+
CURRENT_ARCH := $(shell uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/; s/arm64/arm64/')
1515

1616
# 默认目标:构建并安装当前平台
1717
.PHONY: default

0 commit comments

Comments
 (0)