parent
9957fc12fb
commit
4cfbe8c4cf
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -53,7 +53,12 @@ server: templates-archive ## Build server for local environment.
|
|||
server-mac: templates-archive ## Build server for Mac.
|
||||
mkdir -p bin/mac
|
||||
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=mac")
|
||||
ifeq ($(FB_PROD),)
|
||||
cd server; env GOOS=darwin GOARCH=$(MAC_GO_ARCH) go build -ldflags '$(LDFLAGS)' -tags '$(BUILD_TAGS)' -o ../bin/mac/focalboard-server ./main
|
||||
else
|
||||
# Always build x86 for production, to work on both Apple Silicon and legacy Macs
|
||||
cd server; env GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build -ldflags '$(LDFLAGS)' -tags '$(BUILD_TAGS)' -o ../bin/mac/focalboard-server ./main
|
||||
endif
|
||||
|
||||
server-linux: templates-archive ## Build server for Linux.
|
||||
mkdir -p bin/linux
|
||||
|
|
Loading…
Reference in a new issue