add arm64 support (#155)
* add arm64 support * arm64s arent exe... * s/windows/darwin/
This commit is contained in:
parent
be4a281d0c
commit
f547011d23
4 changed files with 599 additions and 114 deletions
2
Makefile
2
Makefile
|
@ -61,11 +61,13 @@ ifneq ($(HAS_SERVER),)
|
||||||
ifeq ($(MM_DEBUG),)
|
ifeq ($(MM_DEBUG),)
|
||||||
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-linux-amd64;
|
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-linux-amd64;
|
||||||
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-darwin-amd64;
|
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-darwin-amd64;
|
||||||
|
cd server && env GOOS=darwin GOARCH=arm64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-darwin-arm64;
|
||||||
cd server && env GOOS=windows GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-windows-amd64.exe;
|
cd server && env GOOS=windows GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -o dist/plugin-windows-amd64.exe;
|
||||||
else
|
else
|
||||||
$(info DEBUG mode is on; to disable, unset MM_DEBUG)
|
$(info DEBUG mode is on; to disable, unset MM_DEBUG)
|
||||||
|
|
||||||
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-darwin-amd64;
|
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-darwin-amd64;
|
||||||
|
cd server && env GOOS=darwin GOARCH=arm64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-darwin-arm64;
|
||||||
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-linux-amd64;
|
cd server && env GOOS=linux GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-linux-amd64;
|
||||||
cd server && env GOOS=windows GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-windows-amd64.exe;
|
cd server && env GOOS=windows GOARCH=amd64 $(GO) build $(GO_BUILD_FLAGS) -gcflags "all=-N -l" -o dist/plugin-windows-amd64.exe;
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -4,8 +4,8 @@ go 1.12
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/go-git/go-git/v5 v5.1.0
|
github.com/go-git/go-git/v5 v5.1.0
|
||||||
github.com/mattermost/mattermost-server/v5 v5.3.2-0.20200924100636-e726b0426826
|
github.com/mattermost/mattermost-server/v5 v5.34.0
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/stretchr/testify v1.6.1
|
github.com/stretchr/testify v1.7.0
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
706
build/go.sum
706
build/go.sum
File diff suppressed because it is too large
Load diff
|
@ -12,6 +12,7 @@
|
||||||
"executables": {
|
"executables": {
|
||||||
"linux-amd64": "server/dist/plugin-linux-amd64",
|
"linux-amd64": "server/dist/plugin-linux-amd64",
|
||||||
"darwin-amd64": "server/dist/plugin-darwin-amd64",
|
"darwin-amd64": "server/dist/plugin-darwin-amd64",
|
||||||
|
"darwin-arm64": "server/dist/plugin-darwin-arm64",
|
||||||
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
|
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue