|
|
|
@ -23,15 +23,15 @@ build_frontend:
|
|
|
|
|
|
|
|
|
|
build_backend_on_linux:
|
|
|
|
|
cd $(SERVER_PATH) \
|
|
|
|
|
&& GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -tags 'osusergo,netgo' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
|
|
|
|
&& GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
|
|
|
|
|
|
|
|
|
build_backend_on_darwin:
|
|
|
|
|
cd $(SERVER_PATH) \
|
|
|
|
|
&& GOOS=linux GOARCH=amd64 $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
|
|
|
|
&& GOOS=linux GOARCH=amd64 $(GOBUILD) -trimpath -ldflags '-s -w' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
|
|
|
|
|
|
|
|
|
build_backend_on_archlinux:
|
|
|
|
|
cd $(SERVER_PATH) \
|
|
|
|
|
&& GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-fpic"' -tags osusergo -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
|
|
|
|
&& GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
|
|
|
|
|
|
|
|
|
build_all: build_frontend build_backend_on_linux
|
|
|
|
|
|
|
|
|
|