We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c015a4 commit 032d69cCopy full SHA for 032d69c
1 file changed
Makefile
@@ -1,5 +1,6 @@
1
export VERSION=3.0.0-beta
2
export RELEASE_PATH="releases/aliyun-cli-${VERSION}"
3
+ARCH ?= $(shell uname -m)
4
5
all: build
6
publish: build build_mac build_linux build_windows build_linux_arm64 gen_version
@@ -14,7 +15,12 @@ build: deps
14
15
go build -ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=${VERSION}'" -o out/aliyun main/main.go
16
17
install: build
- cp out/aliyun /usr/local/bin
18
+ @if [ "$(ARCH)" = "riscv64" ]; then \
19
+ install -d "$(HOME)/.local/bin"; \
20
+ install -m755 out/aliyun "$(HOME)/.local/bin/aliyun"; \
21
+ else \
22
+ install -Dm755 out/aliyun /usr/local/bin/aliyun; \
23
+ fi
24
25
build_mac:
26
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=${VERSION}'" -o out/aliyun main/main.go
0 commit comments