Update architecture detection method

```
In some OS, obtaining the processor type from `uname - p` may fail.
For Golang programs, we should use `go env GOARCH` to obtain the architecture

=====================
$ go env GOARCH
amd64
$ uname -m
x86_64
$ uname -p
unknown
```

Signed-off-by: weidongkl <weidong@uniontech.com>
This commit is contained in:
weidongkl 2024-01-11 10:53:29 +08:00
parent dcf6819877
commit 57a1bb80e5
No known key found for this signature in database
GPG Key ID: 5977E9E39B2579B0
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ GOBIN = $(shell go env GOPATH)/bin
endif
GOX = $(GOBIN)/gox
GOIMPORTS = $(GOBIN)/goimports
ARCH = $(shell uname -p)
ARCH = $(shell go env GOARCH)
ACCEPTANCE_DIR:=../acceptance-testing
# To specify the subset of acceptance tests to run. '.' means all tests