wip: macOS build

This commit is contained in:
arm64v8a
2022-10-16 22:19:00 +08:00
parent 88012cb9d2
commit b46cd2da3d
8 changed files with 79 additions and 51 deletions

View File

@@ -54,6 +54,8 @@ func (s *BaseServer) Update(ctx context.Context, in *gen.UpdateReq) (*gen.Update
search = "windows64"
} else if runtime.GOOS == "linux" && runtime.GOARCH == "amd64" {
search = "linux64"
} else if runtime.GOOS == "darwin" {
search = "macos-" + runtime.GOARCH
} else {
ret.Error = "Not official support platform"
return ret, nil